Trendline
class Trendline extends JsonConfig (View source)
Trendline ConfigObject
An object containing all the values for a single trendline in a multiple data set chart, which can be passed into the trendline property of the chart's options.
Traits
Constants
TYPE |
Type of JsonConfig object
|
Methods
Builds the trendline object when passed an array of configuration 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.
Whether the trendline should have a legend entry or not.
Whether the trendline should have a legend entry or not.
Sets the display of trendline points.
Details
at line 70
__construct(
array $config = array())
Builds the trendline object when passed an array of configuration options.
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.
in
ColorTrait at line 14
Chart
color(
string $color)
Sets the color for the object carrying this trait.
in
LabelInLegendTrait at line 14
Chart
labelInLegend(
bool $label)
Whether the trendline should have a legend entry or not.
in
LineWidthTrait at line 17
Chart
lineWidth(
integer $width)
Data line width in pixels.
Use zero to hide all lines and show only the points. You can override values for individual series using the series property.
in
OpacityTrait at line 19
Chart
opacity(
float $opacity)
Sets the transparency of assigned object points
1.0 being completely opaque and 0.0 fully transparent.
in
PointSizeTrait at line 17
Chart
pointSize(
integer $size)
Diameter of displayed points in pixels.
Use zero to hide all points. You can override values for individual series using the series property.
in
VisibleInLegendTrait at line 14
Chart
visibleInLegend(
bool $visible)
Whether the trendline should have a legend entry or not.
at line 84
Trendline
degree(
bool $degree)
Sets the display of trendline points.
at line 96
Trendline
pointsVisible(
bool $visible)
Sets the display of trendline points.
at line 108
Trendline
showR2(
bool $visible)
Sets the display of the status of the label in the legend.
at line 122
Series
type(
string $type)
The default line type for any series not specified in the series property.
Available values are: 'line', 'exponential', 'polynomial'