class ChartArea extends JsonConfig (View source)

ChartArea ConfigObject

An object containing all the values for the chartArea which can be passed into the chart's options.

Constants

TYPE

Type of JsonConfig object

Methods

__construct( array $config = array())

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

mixed
__get( string $option)

Get the value of a set option via magic method.

from  JsonConfig
getOptions()

Gets the Options object for the JsonConfig

from  JsonConfig
setOption( string $option, mixed $value)

Shortcut method to set the value of an option and return $this.

from  JsonConfig
setOptions( array $config)

Parses the config array by passing the values through each method to check validity against if the option exists.

from  JsonConfig
array
jsonSerialize()

Custom serialization of the JsonConfig object.

from  JsonConfig
left( int|string $left)

Sets the left padding of the chart in the container.

top( int|string $top)

Sets the top padding of the chart in the container.

width( int|string $width)

Sets the width of the chart in the container.

height( int|string $height)

Sets the height of the chart in the container.

Details

at line 52
__construct( array $config = array())

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

Parameters

array $config

Exceptions

InvalidConfigValue
InvalidConfigProperty

in JsonConfig at line 64
mixed __get( string $option)

Get the value of a set option via magic method.

Parameters

string $option Name of option.

Return Value

mixed

Exceptions

InvalidConfigProperty

in JsonConfig at line 75
Options getOptions()

Gets the Options object for the JsonConfig

Return Value

Options

in JsonConfig at line 90
JsonConfig setOption( string $option, mixed $value)

Shortcut method to set the value of an option and return $this.

In order to maintain backwards compatibility, ConfigObjects will be unwrapped.

Parameters

string $option Option to set.
mixed $value Value of the option.

Return Value

JsonConfig

in JsonConfig at line 106
setOptions( array $config)

Parses the config array by passing the values through each method to check validity against if the option exists.

Parameters

array $config

Exceptions

InvalidConfigValue
InvalidConfigProperty

in JsonConfig at line 275
array jsonSerialize()

Custom serialization of the JsonConfig object.

Return Value

array

at line 66
ChartArea left( int|string $left)

Sets the left padding of the chart in the container.

Parameters

int|string $left Amount in pixels as integer or percent

Return Value

ChartArea

Exceptions

InvalidConfigValue

at line 78
ChartArea top( int|string $top)

Sets the top padding of the chart in the container.

Parameters

int|string $top Amount in pixels as integer or percent

Return Value

ChartArea

Exceptions

InvalidConfigValue

at line 90
ChartArea width( int|string $width)

Sets the width of the chart in the container.

Parameters

int|string $width Amount in pixels as integer or percent

Return Value

ChartArea

Exceptions

InvalidConfigValue

at line 102
ChartArea height( int|string $height)

Sets the height of the chart in the container.

Parameters

int|string $height Amount in pixels as integer or percent

Return Value

ChartArea

Exceptions

InvalidConfigValue