class ChartArea extends ConfigObject (View source)

Properties

int|string $left How far to draw the chart from the left border.
int|string $top How far to draw the chart from the top border.
int|string $width Width of the chart.
int|string $height Height of the chart.

Methods

mixed
__construct( array $config = array())

Builds the chartArea object when passed an array of configuration options.

array
toArray( string $keyName = null)

Returns an array representation of the object.

array
getValues()

Same as toArray, but without the class name as a key to being multi-dimension.

left( int $left)

Sets the left padding of the chart in the container.

top( int $top)

Sets the top padding of the chart in the container.

width( int $width)

Sets the width of the chart in the container.

height( int $height)

Sets the height of the chart in the container.

Details

at line 59
mixed __construct( array $config = array())

Builds the chartArea object when passed an array of configuration options.

Parameters

array $config Array of options.

Return Value

mixed

in ConfigObject at line 93
array toArray( string $keyName = null)

Returns an array representation of the object.

If passed a label, then the array will be returned with the label as the key.

Called with no label returns an array with the classname as the key.

Parameters

string $keyName Key name to be applied to generated array.

Return Value

array Assoc. array of the options of the object.

in ConfigObject at line 115
array getValues()

Same as toArray, but without the class name as a key to being multi-dimension.

Return Value

array Array of the options of the object.

at line 71
ChartArea left( int $left)

Sets the left padding of the chart in the container.

Parameters

int $left Amount in pixels

Return Value

ChartArea

Exceptions

InvalidConfigValue

at line 93
ChartArea top( int $top)

Sets the top padding of the chart in the container.

Parameters

int $top Amount in pixels

Return Value

ChartArea

Exceptions

InvalidConfigValue

at line 115
ChartArea width( int $width)

Sets the width of the chart in the container.

Parameters

int $width Amount in pixels

Return Value

ChartArea

Exceptions

InvalidConfigValue

at line 137
ChartArea height( int $height)

Sets the height of the chart in the container.

Parameters

int $height Amount in pixels

Return Value

ChartArea

Exceptions

InvalidConfigValue