diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-08-10 09:24:49 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-08-10 09:24:49 +0000 |
commit | 679c5d855f5640e2888537bd3cab623503b6c0e0 (patch) | |
tree | a37cb7702f066223fc6fb2eedcce154e138a589f /src/options/chart.php | |
parent | 9ffa22267933bdaa8d490d36ae5a78c722e23527 (diff) | |
download | zetacomponents-graph-679c5d855f5640e2888537bd3cab623503b6c0e0.zip zetacomponents-graph-679c5d855f5640e2888537bd3cab623503b6c0e0.tar.gz |
- Enhanced documentation
- Added examples to most of the classes
- Fixed class descriptions
- Refence options classes which may be used to configure the current chart.
Diffstat (limited to 'src/options/chart.php')
-rw-r--r-- | src/options/chart.php | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/options/chart.php b/src/options/chart.php index 91b21a4..e958003 100644 --- a/src/options/chart.php +++ b/src/options/chart.php @@ -8,7 +8,32 @@ * @license http://ez.no/licenses/new_bsd New BSD License */ /** - * Class containing the basic options for charts + * Class containing the basic options for charts. + * + * <code> + * $graph = new ezcGraphPieChart(); + * $graph->palette = new ezcGraphPaletteEzBlue(); + * $graph->title = 'Access statistics'; + * + * // Global font options + * $graph->options->font->name = 'serif'; + * + * // Special font options for sub elements + * $graph->title->background = '#EEEEEC'; + * $graph->title->font->name = 'sans-serif'; + * + * $graph->options->font->maxFontSize = 8; + * + * $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( + * 'Mozilla' => 19113, + * 'Explorer' => 10917, + * 'Opera' => 1464, + * 'Safari' => 652, + * 'Konqueror' => 474, + * ) ); + * + * $graph->render( 400, 150, 'tutorial_chart_title.svg' ); + * </code> * * @property int $width * Width of the chart. |