BackgroundColor
class BackgroundColor extends JsonConfig (View source)
backgroundColor Object
An object containing all the values for the backgroundColor object which can be passed into the chart's options.
Constants
| TYPE | 
                     Type of JsonConfig object 
  | 
            
Methods
Builds the backgroundColor object with specified options
Shortcut method to set the value of an option and return $this.
Parses the config array by passing the values through each method to check validity against if the option exists.
Sets the chart color fill.
Sets the chart border color.
Sets the chart border width.
Details
        at line 54
                            
    
    __construct(
    array $config = array())
    
    Builds the backgroundColor object with specified options
Pass an associative array with values for the keys [ stroke | strokeWidth | fill ]
        in 
    JsonConfig at line 64
                            
    mixed
    __get(
    string $option)
    
    Get the value of a set option via magic method.
        in 
    JsonConfig at line 75
                            
    Options
    getOptions()
    
    Gets the Options object for the JsonConfig
        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.
        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.
        in 
    JsonConfig at line 275
                            
    array
    jsonSerialize()
    
    Custom serialization of the JsonConfig object.
        at line 70
                            
    BackgroundColor
    fill(
    string $fill)
    
    Sets the chart color fill.
Example: 'blue' or '#C5C5C5'
        at line 84
                            
    BackgroundColor
    stroke(
    string $stroke)
    
    Sets the chart border color.
Example: 'red' or '#A2A2A2'
        at line 96
                            
    BackgroundColor
    strokeWidth(
    integer $strokeWidth)
    
    Sets the chart border width.