summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-08-10 09:24:49 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-08-10 09:24:49 +0000
commit679c5d855f5640e2888537bd3cab623503b6c0e0 (patch)
treea37cb7702f066223fc6fb2eedcce154e138a589f /src/driver/svg.php
parent9ffa22267933bdaa8d490d36ae5a78c722e23527 (diff)
downloadzetacomponents-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/driver/svg.php')
-rw-r--r--src/driver/svg.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index edc0062..8d3c2b5 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -10,6 +10,41 @@
/**
* Extension of the basic Driver package to utilize the SVGlib.
*
+ * This drivers options are defined in the class ezcGraphSvgDriverOptions
+ * extending the basic driver options class ezcGraphDriverOptions.
+ *
+ * As this is the default driver you do not need to explicitely set anything to
+ * use it, but may use some of its advanced features.
+ *
+ * <code>
+ * $graph = new ezcGraphPieChart();
+ * $graph->background->color = '#FFFFFFFF';
+ * $graph->title = 'Access statistics';
+ * $graph->legend = false;
+ *
+ * $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
+ * 'Mozilla' => 19113,
+ * 'Explorer' => 10917,
+ * 'Opera' => 1464,
+ * 'Safari' => 652,
+ * 'Konqueror' => 474,
+ * ) );
+ *
+ * $graph->renderer = new ezcGraphRenderer3d();
+ * $graph->renderer->options->pieChartShadowSize = 10;
+ * $graph->renderer->options->pieChartGleam = .5;
+ * $graph->renderer->options->dataBorder = false;
+ * $graph->renderer->options->pieChartHeight = 16;
+ * $graph->renderer->options->legendSymbolGleam = .5;
+ *
+ * // SVG driver options
+ * $graph->driver->options->templateDocument = dirname( __FILE__ ) . '/template.svg';
+ * $graph->driver->options->graphOffset = new ezcGraphCoordinate( 25, 40 );
+ * $graph->driver->options->insertIntoGroup = 'ezcGraph';
+ *
+ * $graph->render( 400, 200, 'tutorial_driver_svg.svg' );
+ * </code>
+ *
* @version //autogentag//
* @package Graph
* @mainclass
OpenPOWER on IntegriCloud