diff options
Diffstat (limited to 'docs/tutorial/tutorial_bar_options.php')
-rw-r--r-- | docs/tutorial/tutorial_bar_options.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/tutorial/tutorial_bar_options.php b/docs/tutorial/tutorial_bar_options.php new file mode 100644 index 0000000..4dd846a --- /dev/null +++ b/docs/tutorial/tutorial_bar_options.php @@ -0,0 +1,28 @@ +<?php + +require_once 'tutorial_autoload.php'; +$wikidata = include 'tutorial_wikipedia_data.php'; + +$graph = new ezcGraphBarChart(); +$graph->title = 'Wikipedia articles'; + +// Add data +foreach ( $wikidata as $language => $data ) +{ + $graph->data[$language] = new ezcGraphArrayDataSet( $data ); +} +$graph->data['German']->displayType = ezcGraph::LINE; +$graph->data['German']->highlight = true; +$graph->data['German']->highlight['Mar 2006'] = false; + +$graph->options->fillLines = 210; + +$graph->options->highlightSize = 12; + +$graph->options->highlightFont->background = '#EEEEEC88'; +$graph->options->highlightFont->border = '#000000'; +$graph->options->highlightFont->borderWidth = 1; + +$graph->render( 400, 150, 'tutorial_bar_options.svg' ); + +?> |