Path

ez components / documentation / api reference / latest / graph


eZ Components latest

Graph: ezcGraphChartOptions

[ Tutorial ] [ Gallery ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcGraphChartOptions

Class containing the basic options for charts. [source]
 1.    $graph new ezcGraphPieChart();
 2.    $graph->palette new ezcGraphPaletteEzBlue();
 3.    $graph->title 'Access statistics';
 4.  
 5.    // Global font options
 6.    $graph->options->font->name 'serif';
 7.  
 8.    // Special font options for sub elements
 9.    $graph->title->background '#EEEEEC';
10.    $graph->title->font->name 'sans-serif';
11.  
12.    $graph->options->font->maxFontSize 8;
13.  
14.    $graph->data['Access statistics'new ezcGraphArrayDataSetarray(
15.        'Mozilla' => 19113,
16.        'Explorer' => 10917,
17.        'Opera' => 1464,
18.        'Safari' => 652,
19.        'Konqueror' => 474,
20.    ) );
21.  
22.    $graph->render400150'tutorial_chart_title.svg' );

Parents

ezcBaseOptions
   |
   --ezcGraphChartOptions

Descendents

Child Class Description
ezcGraphOdometerChartOptions Class containing the options for odometer charts
ezcGraphLineChartOptions Class containing the basic options for line charts.
ezcGraphRadarChartOptions Class containing the basic options for radar charts.
ezcGraphPieChartOptions Class containing the basic options for pie charts.
ezcGraphRendererOptions Class containing the basic options for renderers.

Properties

ezcGraphFontOptions read/write  $font
Font used in the graph.
int read/write  $height
Height of the chart.
int read/write  $width
Width of the chart.

Inherited Member Variables

From ezcBaseOptions:
protected  ezcBaseOptions::$properties

Inherited Methods

From ezcBaseOptions :
public ezcBaseOptions ezcBaseOptions::__construct()
Construct a new options object.
public void ezcBaseOptions::merge()
Merge an array into the actual options object.
public bool ezcBaseOptions::offsetExists()
Returns if an option exists.
public mixed ezcBaseOptions::offsetGet()
Returns an option value.
public void ezcBaseOptions::offsetSet()
Set an option.
public void ezcBaseOptions::offsetUnset()
Unset an option.
Last updated: Mon, 21 Dec 2009