class Animation extends ConfigObject (View source)

Properties

int $duration The duration of the animation, in milliseconds.
string $easing The easing function applied to the animation.
bool $startup Determines if the chart will animate on the initial draw.

Methods

mixed
__construct( array $config = array())

Builds the Animation object.

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.

duration( int $d)

The duration of the animation, in milliseconds.

easing( string $e)

The easing function applied to the animation.

startup( bool $s)

Determines if the chart will animate on the initial draw.

Details

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

Builds the Animation object.

Parameters

array $config Array of options.

Return Value

mixed

Exceptions

InvalidConfigValue
InvalidConfigProperty

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 68
Animation duration( int $d)

The duration of the animation, in milliseconds.

For details, see the animation documentation.

Parameters

int $d

Return Value

Animation

See also

https://developers.google.com/chart/interactive/docs/animation

at line 94
Animation easing( string $e)

The easing function applied to the animation.

The following options are available: 'linear' - Constant speed. 'in' - Ease in - Start slow and speed up. 'out' - Ease out - Start fast and slow down. 'inAndOut' - Ease in and out - Start slow, speed up, then slow down.

Parameters

string $e

Return Value

Animation

at line 124
Animation startup( bool $s)

Determines if the chart will animate on the initial draw.

If true, the chart will start at the baseline and animate to its final state.

Parameters

bool $s

Return Value

Animation