diff options
Diffstat (limited to 'docs/tutorial/tutorial_output.php')
-rw-r--r-- | docs/tutorial/tutorial_output.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/tutorial/tutorial_output.php b/docs/tutorial/tutorial_output.php new file mode 100644 index 0000000..738c0e4 --- /dev/null +++ b/docs/tutorial/tutorial_output.php @@ -0,0 +1,19 @@ +<?php + +require_once 'tutorial_autoload.php'; + +$graph = new ezcGraphPieChart(); +$graph->title = 'Access statistics'; + +$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 19113, + 'Explorer' => 10917, + 'Opera' => 1464, + 'Safari' => 652, + 'Konqueror' => 474, +) ); +$graph->data['Access statistics']->highlight['Opera'] = true; + +$graph->renderToOutput( 400, 150 ); + +?> |