diff options
Diffstat (limited to 'docs/tutorial/tutorial_legend_options.php')
-rw-r--r-- | docs/tutorial/tutorial_legend_options.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/tutorial/tutorial_legend_options.php b/docs/tutorial/tutorial_legend_options.php new file mode 100644 index 0000000..b12e040 --- /dev/null +++ b/docs/tutorial/tutorial_legend_options.php @@ -0,0 +1,23 @@ +<?php + +require_once 'tutorial_autoload.php'; + +$graph = new ezcGraphPieChart(); +$graph->palette = new ezcGraphPaletteEz(); +$graph->title = 'Access statistics'; + +$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 19113, + 'Explorer' => 10917, + 'Opera' => 1464, + 'Safari' => 652, + 'Konqueror' => 474, +) ); + +$graph->legend->position = ezcGraph::BOTTOM; +$graph->legend->landscapeSize = .3; +$graph->legend->title = 'Legend'; + +$graph->render( 400, 150, 'tutorial_legend_options.svg' ); + +?> |