Graph: ezcGraphPieChartOptions
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphPieChartOptions
|
Class containing the basic options for pie charts. [
source]
1. $graph = new ezcGraphPieChart();
2. $graph->palette = new ezcGraphPaletteEzRed();
3. $graph->title = 'Access statistics';
4. $graph->legend = false;
5.
6. $graph->options->label = '%1$s (%3$.1f)';
7. $graph->options->percentThreshold = .05;
8.
9. $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
10. 'Mozilla' => 19113,
11. 'Explorer' => 10917,
12. 'Opera' => 1464,
13. 'Safari' => 652,
14. 'Konqueror' => 474,
15. ) );
16. $graph->data['Access statistics']->highlight['Explorer'] = true;
17.
18. $graph->render( 400, 150, 'tutorial_pie_chart_options.svg' );
Parents
ezcBaseOptions
|
--ezcGraphChartOptions
|
--ezcGraphPieChartOptions
Properties
|
float |
read/write
|
$absoluteThreshold
Values with a lower absolute value are aggregated. |
|
string |
read/write
|
$label
String used to label pies %1$s Name of pie %2$d Value of pie %3$.1f Percentage |
|
callback |
read/write
|
$labelCallback
Callback function to format pie chart labels. Function will receive 3 parameters: string function( label, value, percent ) |
|
float |
read/write
|
$percentThreshold
Values with a lower percentage value are aggregated. |
|
float |
read/write
|
$sum
Fixed sum of values. This should be used for incomplete pie charts. |
|
string |
read/write
|
$summarizeCaption
Caption for values summarized because they are lower then the configured tresh hold. |
Inherited Member Variables
From
ezcBaseOptions:
Inherited Methods
From
ezcBaseOptions :
Last updated: Thu, 31 Jan 2008