summaryrefslogtreecommitdiffstats
path: root/docs/tutorial/tutorial_driver_flash.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-05-16 12:20:32 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-05-16 12:20:32 +0000
commit93a08239c811e4820e60ea10935dbf7ad3ea04fa (patch)
tree9a9b04241630cc8d4678e1cd97a3b8c024edf30d /docs/tutorial/tutorial_driver_flash.php
parentc35bb1d06e3e9f2b5517a8486d3353921218f72a (diff)
downloadzetacomponents-graph-93a08239c811e4820e60ea10935dbf7ad3ea04fa.zip
zetacomponents-graph-93a08239c811e4820e60ea10935dbf7ad3ea04fa.tar.gz
- Moved tutorial examples to own directory
- Gave examples more descriptive names
Diffstat (limited to 'docs/tutorial/tutorial_driver_flash.php')
-rw-r--r--docs/tutorial/tutorial_driver_flash.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/tutorial/tutorial_driver_flash.php b/docs/tutorial/tutorial_driver_flash.php
new file mode 100644
index 0000000..067e801
--- /dev/null
+++ b/docs/tutorial/tutorial_driver_flash.php
@@ -0,0 +1,31 @@
+<?php
+
+require_once 'tutorial_autoload.php';
+
+$graph = new ezcGraphPieChart();
+$graph->title = 'Access statistics';
+$graph->legend = false;
+
+$graph->driver = new ezcGraphFlashDriver();
+$graph->options->font = 'tutorial_font.fdb';
+
+$graph->driver->options->compression = 7;
+
+$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
+ 'Mozilla' => 19113,
+ 'Explorer' => 10917,
+ 'Opera' => 1464,
+ 'Safari' => 652,
+ 'Konqueror' => 474,
+) );
+
+$graph->renderer = new ezcGraphRenderer3d();
+$graph->renderer->options->pieChartShadowSize = 10;
+$graph->renderer->options->pieChartGleam = .5;
+$graph->renderer->options->dataBorder = false;
+$graph->renderer->options->pieChartHeight = 16;
+$graph->renderer->options->legendSymbolGleam = .5;
+
+$graph->render( 400, 200, 'tutorial_driver_flash.swf' );
+
+?>
OpenPOWER on IntegriCloud