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_pie_chart_3d.php | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/tutorial/tutorial_pie_chart_3d.php (limited to 'docs/tutorial/tutorial_pie_chart_3d.php') diff --git a/docs/tutorial/tutorial_pie_chart_3d.php b/docs/tutorial/tutorial_pie_chart_3d.php new file mode 100644 index 0000000..b5cdcaa --- /dev/null +++ b/docs/tutorial/tutorial_pie_chart_3d.php @@ -0,0 +1,42 @@ +palette = new ezcGraphPaletteEzRed(); +$graph->title = 'Access statistics'; +$graph->options->label = '%2$d (%3$.1f%%)'; + +$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 19113, + 'Explorer' => 10917, + 'Opera' => 1464, + 'Safari' => 652, + 'Konqueror' => 474, +) ); +$graph->data['Access statistics']->highlight['Explorer'] = true; + +$graph->renderer = new ezcGraphRenderer3d(); + +$graph->renderer->options->moveOut = .2; + +$graph->renderer->options->pieChartOffset = 63; + +$graph->renderer->options->pieChartGleam = .3; +$graph->renderer->options->pieChartGleamColor = '#FFFFFF'; + +$graph->renderer->options->pieChartShadowSize = 5; +$graph->renderer->options->pieChartShadowColor = '#000000'; + +$graph->renderer->options->legendSymbolGleam = .5; +$graph->renderer->options->legendSymbolGleamSize = .9; +$graph->renderer->options->legendSymbolGleamColor = '#FFFFFF'; + +$graph->renderer->options->pieChartSymbolColor = '#55575388'; + +$graph->renderer->options->pieChartHeight = 5; +$graph->renderer->options->pieChartRotation = .8; + +$graph->render( 400, 150, 'tutorial_pie_chart_3d.svg' ); + +?> -- cgit v1.1