BackgroundColor
class BackgroundColor extends ConfigObject (View source)
Properties
string | $stroke | The color of the chart border, as an HTML color string. | |
int | $strokeWidth | The border width, in pixels. | |
string | $fill | The chart fill color, as an HTML color string. |
Methods
Builds the backgroundColor object with specified options
Returns an array representation of the object.
Same as toArray, but without the class name as a key to being multi-dimension.
Sets the chart border color. Example: 'red' or '#A2A2A2'
Sets the chart border width.
Sets the chart color fill, Example: 'blue' or '#C5C5C5'
Details
at line 56
mixed
__construct(
array $config = array())
Builds the backgroundColor object with specified options
Pass an associative array with values for the keys [ stroke | strokeWidth | fill ]
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 67
BackgroundColor
stroke(
string $stroke)
Sets the chart border color. Example: 'red' or '#A2A2A2'
at line 87
BackgroundColor
strokeWidth(
int $strokeWidth)
Sets the chart border width.
at line 107
BackgroundColor
fill(
string $fill)
Sets the chart color fill, Example: 'blue' or '#C5C5C5'