Graph: ezcGraphLineChartOptions
[ ]
[ Gallery ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphLineChartOptions
|
Class containing the basic options for line charts. [
source]
This class contains basic options relevant for line and bar charts, which are just an extension of line charts.
For additional options configuring the apperance of the chart you may also want to check the option classes to configure the respective renderer you are using:
- ezcGraphRendererOptions
- ezcGraphRenderer2dOptions
- ezcGraphRenderer3dOptions
1. $graph = new ezcGraphLineChart();
2. $graph->title = 'Wikipedia articles';
3.
4. $graph->options->fillLines = 220;
5. $graph->options->lineThickness = 3;
6.
7. // Add data
8. foreach ( $wikidata as $language => $data )
9. {
10. $graph->data[$language] = new ezcGraphArrayDataSet( $data );
11. }
12.
13. $graph->render( 400, 150, 'tutorial_line_chart.svg' );
Parents
ezcBaseOptions
|
--ezcGraphChartOptions
|
--ezcGraphLineChartOptions
Properties
|
mixed |
read/write
|
$fillLines
Status wheather the space between line and axis should get filled. - FALSE to not fill the space at all.
- (int) Opacity used to fill up the space with the lines color.
|
|
ezcGraphFontOptions |
read/write
|
$highlightFont
Font configuration for highlight tests |
|
bool |
read/write
|
$highlightLines
If true, it adds lines to highlight the values position on the axis. |
|
int |
read/write
|
$highlightSize
Size of highlight blocks |
|
float |
read/write
|
$lineThickness
Thickness of chart lines |
|
true |
read/write
|
$stackBars
Stack bars |
|
int |
read/write
|
$symbolSize
Size of symbols in line chart. |
Inherited Member Variables
From
ezcBaseOptions:
Method Summary
|
public void |
__set(
$propertyName, $propertyValue )
Set an option value |
Inherited Methods
From
ezcBaseOptions :
Methods
__set
void __set(
string
$propertyName, mixed
$propertyValue )
Set an option value
Parameters
| Name |
Type |
Description |
$propertyName |
string |
|
$propertyValue |
mixed |
|
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If a property is not defined in this class |
Last updated: Mon, 27 Jul 2009