Path

ez components / documentation / api reference / 2007.2beta1 / graph


eZ Components 2007.2beta1

Graph: ezcGraphRenderer2dOptions

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

Class: ezcGraphRenderer2dOptions

Class containing the extended options available in 2d renderer. [source]
 1.    $graph new ezcGraphPieChart();
 2.    $graph->palette new ezcGraphPaletteBlack();
 3.    $graph->title 'Access statistics';
 4.    $graph->options->label '%2$d (%3$.1f%%)';
 5.  
 6.    $graph->data['Access statistics'new ezcGraphArrayDataSetarray(
 7.        'Mozilla' => 19113,
 8.        'Explorer' => 10917,
 9.        'Opera' => 1464,
10.        'Safari' => 652,
11.        'Konqueror' => 474,
12.    ) );
13.    $graph->data['Access statistics']->highlight['Explorer'true;
14.  
15.    // $graph->renderer = new ezcGraphRenderer2d();
16.  
16.    
17.    $graph->renderer->options->moveOut .2;
18.  
19.    $graph->renderer->options->pieChartOffset 63;
20.  
21.    $graph->renderer->options->pieChartGleam .3;
22.    $graph->renderer->options->pieChartGleamColor '#FFFFFF';
23.    $graph->renderer->options->pieChartGleamBorder 2;
24.  
25.    $graph->renderer->options->pieChartShadowSize 3;
26.    $graph->renderer->options->pieChartShadowColor '#000000';
27.  
28.    $graph->renderer->options->legendSymbolGleam .5;
29.    $graph->renderer->options->legendSymbolGleamSize .9;
30.    $graph->renderer->options->legendSymbolGleamColor '#FFFFFF';
31.  
32.    $graph->renderer->options->pieChartSymbolColor '#BABDB688';
33.  
34.    $graph->render400150'tutorial_pie_chart_pimped.svg' );

Parents

ezcBaseOptions
   |
   --ezcGraphChartOptions
      |
      --ezcGraphRendererOptions
         |
         --ezcGraphRenderer2dOptions

Properties

float read/write  $pieChartShadowColor
Color used for pie chart shadows.
int read/write  $pieChartShadowSize
Size of shadows.
float read/write  $pieChartShadowTransparency
Used transparency for pie chart shadows.

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: Wed, 28 Nov 2007