summaryrefslogtreecommitdiffstats
path: root/src/options/driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/options/driver.php')
-rw-r--r--src/options/driver.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/options/driver.php b/src/options/driver.php
index 97cfebe..a69c479 100644
--- a/src/options/driver.php
+++ b/src/options/driver.php
@@ -8,7 +8,27 @@
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
- * Class containing the basic options for charts
+ * Class containing the basic driver options.
+ *
+ * <code>
+ * require_once 'tutorial_autoload.php';
+ *
+ * $graph = new ezcGraphPieChart();
+ * $graph->palette = new ezcGraphPaletteEzBlue();
+ * $graph->title = 'Access statistics';
+ *
+ * $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
+ * 'Mozilla' => 19113,
+ * 'Explorer' => 10917,
+ * 'Opera' => 1464,
+ * 'Safari' => 652,
+ * 'Konqueror' => 474,
+ * ) );
+ *
+ * $graph->driver->options->autoShortenString = false;
+ *
+ * $graph->render( 400, 150, 'tutorial_chart_title.svg' );
+ * </code>
*
* @property int $width
* Width of the chart.
OpenPOWER on IntegriCloud