Animation
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
Builds the Animation object.
Returns an array representation of the object.
Same as toArray, but without the class name as a key to being multi-dimension.
Details
at line 54
mixed
__construct(
array $config = array())
Builds the Animation object.
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.
in
ConfigObject at line 115
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
at line 68
Animation
duration(
int $d)
The duration of the animation, in milliseconds.
For details, see the animation documentation.
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.
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.