Here you have the reference for the properties available for all charting libraries. Any library that doesn't implements some of this properties should document it so in it's specific page.
The colour property sets the graph background colour. It should contain the hex value of the colour.
<?php $canvas->colour = '#123456' // This way you get a dark blue background.
The height property sets the graph height in pixels.
<?php $canvas->height = 300;
The series property sets the data to be plotted on the graph.
It's an associative array of arrays. The keys are the data series names (which will appear on the legend of the graph). Each inside array holds the values for that data serie.
In a pie chart there should be only one data series and the key for this data serie is ignored as the values are named after the x labels.
<?php $canvas->series = array( array(1000, 1200, 1300, 1150), array(345, 1300, 120, 937), );
The series_colours property sets the series colours. It should contain an array of hex value of the desired colours.
<?php $canvas->series_colours = array('#123456', '#654321); // This way you get a dark blue and a medium brown.
The title property sets the graph title.
<?php $canvas->title = 'Graph title';
The type property sets the graph type. All charting libraries support at least the following types:
<?php $canvas->type = 'line';
Here is a complete list of standardized chart types (see each charting library Advanced Help page for a specific list of supported chart types):
Each charting library might support other graph types. Please see the accompanying Advanced Help page or the charting library documentation page.
The width property sets the graph width in pixels.
<?php $canvas->width = 500;
The x_labels property sets the labels for each point in the x axis of the graph.
In a pie chart these are the names used to identify each value in the data series.
<?php $canvas->x_labels = array('2007', '2008', '2009', '2010');
The y_legend property sets the text presented next to the y axis of the graph.
<?php $canvas->y_legend = 'population';
The y_min property sets the minimum value to be presented in the y axis of the graph.
<?php $canvas->y_min = -18;
The y_max property sets the maximum value to be presented in the y axis of the graph.
<?php $canvas->y_max = 164;
The y_step property sets the step used to define intermediate values to be presented in the y axis of the graph.
<?php $canvas->y_step = 4;