Path

ez components / documentation / api reference / 2007.2.1 / graph


eZ Components 2007.2.1

Graph: ezcGraphRendererOptions

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

Class: ezcGraphRendererOptions

Class containing the basic options for renderers. [source]
 1.    $wikidata include 'tutorial_wikipedia_data.php';
 2.  
 3.    $graph new ezcGraphBarChart();
 4.    $graph->title 'Wikipedia articles';
 5.  
 6.    // Add data
 7.       foreach $wikidata as $language => $data )
 8.    {
 9.        $graph->data[$languagenew ezcGraphArrayDataSet$data );
10.    }
11.  
12.    // $graph->renderer = new ezcGraphRenderer2d();
13.  
13.    
14.    $graph->renderer->options->barMargin .2;
15.    $graph->renderer->options->barPadding .2;
16.  
17.    $graph->renderer->options->dataBorder 0;
18.  
19.    $graph->render400150'tutorial_bar_chart_options.svg' );

Parents

ezcBaseOptions
   |
   --ezcGraphChartOptions
      |
      --ezcGraphRendererOptions

Descendents

Child Class Description
ezcGraphRenderer2dOptions Class containing the extended options available in 2d renderer.
ezcGraphRenderer3dOptions Class containing the extended options for the three dimensional renderer.

Properties

float read/write  $barMargin
Procentual distance between bar blocks.
float read/write  $barPadding
Procentual distance between bars.
float read/write  $dataBorder
Factor to darken border of data elements, like lines, bars and pie segments.
float read/write  $legendSymbolGleam
Opacity of gleam in legend symbols
float read/write  $legendSymbolGleamColor
Color of gleam in legend symbols
float read/write  $legendSymbolGleamSize
Size of gleam in legend symbols
float read/write  $maxLabelHeight
Percent of chart height used as maximum height for pie chart labels.
float read/write  $moveOut
Percent to move pie chart elements out of the middle on highlight.
float read/write  $pieChartGleam
Enhance pie chart with gleam on top.
float read/write  $pieChartGleamBorder
Do not draw gleam on an outer border of this size.
float read/write  $pieChartGleamColor
Color used for gleam on pie charts.
float read/write  $pieChartOffset
Offset for starting with first pie chart segment in degrees.
float read/write  $pieChartSymbolColor
Color of pie chart symbols
float read/write  $pieHorizontalSize
Percent of horizontal space used for maximum pie chart size.
float read/write  $pieVerticalSize
Percent of vertical space used for maximum pie chart size.
bool read/write  $showSymbol
Indicates wheather to show the line between pie elements and labels.
float read/write  $symbolSize
Size of symbols used to connect a label with a pie.
int read/write  $titleAlignement
Alignement of box titles.
int read/write  $titlePosition
Position of title in a box.

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: Thu, 31 Jan 2008