Path

ez components / documentation / api reference / 2008.1beta1 / graph


eZ Components 2008.1beta1

Graph: ezcGraphLineChartOptions

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcGraphLineChartOptions

Class containing the basic options for line charts. [source]
 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[$languagenew ezcGraphArrayDataSet$data );
11.    }
12.  
13.    $graph->render400150'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:
protected  ezcBaseOptions::$properties

Method Summary

public void __set( $propertyName, $propertyValue )
Set an option value

Inherited Methods

From ezcBaseOptions :
public ezcBaseOptions ezcBaseOptions::__construct()
Construct a new options object.
public void ezcBaseOptions::merge()
Merge an array into the actual options object.
public bool ezcBaseOptions::offsetExists()
Returns if an option exists.
public mixed ezcBaseOptions::offsetGet()
Returns an option value.
public void ezcBaseOptions::offsetSet()
Set an option.
public void ezcBaseOptions::offsetUnset()
Unset an option.

Methods

__set

void __set( string $propertyName, mixed $propertyValue )
Set an option value

Parameters

Name Type Description
$propertyName string  
$propertyValue mixed  

Throws

ClassDescription
ezcBasePropertyNotFoundException If a property is not defined in this class

Last updated: Tue, 27 May 2008