Annotation
class Annotation extends ConfigObject (View source)
Properties
bool | $highContrast | The highContrast state. | |
TextStyle | $textStyle | Style of the annotation. |
Methods
Builds the Annotation object.
Returns an array representation of the object.
Same as toArray, but without the class name as a key to being multi-dimension.
For charts that support annotations, the highContrast bool lets you override Google Charts' choice of the annotation color. By default, highContrast is true, which causes Charts to select an annotation color with good contrast: light colors on dark backgrounds, and dark on light.
An object that specifies the annotation text style.
Details
at line 45
mixed
__construct(
array $config = array())
Builds the Annotation 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 61
Annotation
highContrast(
bool $highContrast)
For charts that support annotations, the highContrast bool lets you override Google Charts' choice of the annotation color. By default, highContrast is true, which causes Charts to select an annotation color with good contrast: light colors on dark backgrounds, and dark on light.
If you set highContrast to false and don't specify your own annotation color, Google Charts will use the default series color for the annotation
at line 81
Annotation
textStyle(
TextStyle $textStyle)
An object that specifies the annotation text style.