From 53e7401d9b5ff5cb624d21a6ec451a5457458019 Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Wed, 21 Nov 2007 13:04:35 +0000 Subject: - Added tutorial section about odometer charts --- docs/tutorial/tutorial_custom_odometer_chart.php | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docs/tutorial/tutorial_custom_odometer_chart.php (limited to 'docs/tutorial/tutorial_custom_odometer_chart.php') diff --git a/docs/tutorial/tutorial_custom_odometer_chart.php b/docs/tutorial/tutorial_custom_odometer_chart.php new file mode 100644 index 0000000..cb0a654 --- /dev/null +++ b/docs/tutorial/tutorial_custom_odometer_chart.php @@ -0,0 +1,36 @@ +title = 'Custom odometer'; + +$graph->data['data'] = new ezcGraphArrayDataSet( + array( 87 ) +); + +// Set the marker color +$graph->data['data']->color[0] = '#A0000055'; + +// Set colors for the background gradient +$graph->options->startColor = '#2E3436'; +$graph->options->endColor = '#EEEEEC'; + +// Define a border for the odometer +$graph->options->borderWidth = 2; +$graph->options->borderColor = '#BABDB6'; + +// Set marker width +$graph->options->markerWidth = 5; + +// Set space, which the odometer may consume +$graph->options->odometerHeight = .7; + +// Set axis span and label +$graph->axis->min = 0; +$graph->axis->max = 100; +$graph->axis->label = 'Coverage '; + +$graph->render( 400, 150, 'tutorial_custom_odometer_chart.svg' ); + +?> -- cgit v1.1