From 93a08239c811e4820e60ea10935dbf7ad3ea04fa Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Wed, 16 May 2007 12:20:32 +0000 Subject: - Moved tutorial examples to own directory - Gave examples more descriptive names --- docs/tutorial/tutorial_driver_svg.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/tutorial/tutorial_driver_svg.php (limited to 'docs/tutorial/tutorial_driver_svg.php') diff --git a/docs/tutorial/tutorial_driver_svg.php b/docs/tutorial/tutorial_driver_svg.php new file mode 100644 index 0000000..9f57333 --- /dev/null +++ b/docs/tutorial/tutorial_driver_svg.php @@ -0,0 +1,27 @@ +palette = new ezcGraphPaletteEzGreen(); +$graph->title = 'Access statistics'; +$graph->legend = false; + +$graph->driver = new ezcGraphGdDriver(); +$graph->options->font = 'tutorial_font.ttf'; + +$graph->driver->options->supersampling = 1; +$graph->driver->options->jpegQuality = 100; +$graph->driver->options->imageFormat = IMG_JPEG; + +$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 19113, + 'Explorer' => 10917, + 'Opera' => 1464, + 'Safari' => 652, + 'Konqueror' => 474, +) ); + +$graph->render( 400, 200, 'tutorial_driver_svg.jpg' ); + +?> -- cgit v1.1