diff options
Diffstat (limited to 'docs/tutorial/tutorial_chart_legend.php')
-rw-r--r-- | docs/tutorial/tutorial_chart_legend.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/tutorial/tutorial_chart_legend.php b/docs/tutorial/tutorial_chart_legend.php new file mode 100644 index 0000000..791b6b6 --- /dev/null +++ b/docs/tutorial/tutorial_chart_legend.php @@ -0,0 +1,21 @@ +<?php + +require_once 'tutorial_autoload.php'; + +$graph = new ezcGraphPieChart(); +$graph->palette = new ezcGraphPaletteEzGreen(); +$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->render( 400, 150, 'tutorial_chart_legend.svg' ); + +?> |