summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-09-04 08:33:19 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-09-04 08:33:19 +0000
commitc61ea3b2139f5b388ebc8b99b891b0b7ea41524d (patch)
treeadad71e494d5956a75ee1fd5c0a5ee7690ef16e5 /docs
parent00c581fadaa2bdd638aa7f5cf0c97b3a26ba2bfe (diff)
downloadzetacomponents-graph-c61ea3b2139f5b388ebc8b99b891b0b7ea41524d.zip
zetacomponents-graph-c61ea3b2139f5b388ebc8b99b891b0b7ea41524d.tar.gz
- Added axis container class
# First step to support multiple axis
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorial/tutorial_driver_svg.php22
1 files changed, 13 insertions, 9 deletions
diff --git a/docs/tutorial/tutorial_driver_svg.php b/docs/tutorial/tutorial_driver_svg.php
index 9f57333..6e9b96b 100644
--- a/docs/tutorial/tutorial_driver_svg.php
+++ b/docs/tutorial/tutorial_driver_svg.php
@@ -3,17 +3,10 @@
require_once 'tutorial_autoload.php';
$graph = new ezcGraphPieChart();
-$graph->palette = new ezcGraphPaletteEzGreen();
+$graph->background->color = '#FFFFFFFF';
$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,
@@ -22,6 +15,17 @@ $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
'Konqueror' => 474,
) );
-$graph->render( 400, 200, 'tutorial_driver_svg.jpg' );
+$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->driver->options->templateDocument = dirname( __FILE__ ) . '/template.svg';
+$graph->driver->options->graphOffset = new ezcGraphCoordinate( 25, 40 );
+$graph->driver->options->insertIntoGroup = 'ezcGraph';
+
+$graph->render( 400, 200, 'tutorial_driver_svg.svg' );
?>
OpenPOWER on IntegriCloud