Path

ez components / documentation / api reference / 2006.2 / graph


eZ Components 2006.2

Graph: ezcGraphBarChart

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

Class: ezcGraphBarChart

Class for bar charts. Can make use of an unlimited amount of datasets and will display them as bars by default. [source]
X axis:
  • Labeled axis
  • Boxed axis label renderer
Y axis:
  • Numeric axis
  • Exact axis label renderer
 1.   // Create a new line chart
 2.     $chart new ezcGraphBarChart();
 3.  
 4.   // Add data to line chart
 5.     $chart->data['sample dataset'new ezcGraphArrayDataSet(
 6.       array(
 7.           '100' => 1.2,
 8.           '200' => 43.2,
 9.           '300' => -34.14,
10.           '350' => 65,
11.           '400' => 123,
12.       )
13.   );
14.  
15.   // Render chart with default 2d renderer and default SVG driver
16.     $chart->render500200'bar_chart.svg' );

Parents

ezcGraphChart
   |
   --ezcGraphLineChart
      |
      --ezcGraphBarChart

Inherited Member Variables

From ezcGraphChart:
protected  ezcGraphChart::$data
protected  ezcGraphChart::$driver
protected  ezcGraphChart::$elements
protected  ezcGraphChart::$options
protected  ezcGraphChart::$palette
protected  ezcGraphChart::$renderElement
protected  ezcGraphChart::$renderer

Method Summary

public int getDefaultDisplayType( )
Returns the default display type of the current chart type.

Inherited Methods

From ezcGraphLineChart :
public int ezcGraphLineChart::getDefaultDisplayType()
Returns the default display type of the current chart type.
public void ezcGraphLineChart::render()
Render the line chart
protected void ezcGraphLineChart::renderData()
Render the assigned data
From ezcGraphChart :
protected void ezcGraphChart::addElement()
Add element to chart
public abstract int ezcGraphChart::getDefaultDisplayType()
Returns the default display type of the current chart type.
public abstract void ezcGraphChart::render()
Renders this chart
public void ezcGraphChart::setFromPalette()
Set colors and border fro this element

Methods

getDefaultDisplayType

int getDefaultDisplayType( )
Returns the default display type of the current chart type.

Redefinition of

Method Description
ezcGraphLineChart::getDefaultDisplayType() Returns the default display type of the current chart type.

Last updated: Thu, 01 Nov 2007