The nested element trendLine was developed as a part of the improvements for the series element. It enables the user to set up trend line displaying for chart series. See a more detailed description of the Series element in the developer site.
NOTE. Trend lines can be used for all chart types, except for pie and radar charts. If the chart type changes to pie or radar, the trend lines corresponding to data, are lost.
Attribute name | Brief description |
type | The type attribute specifies trend line type. Available values:
|
name |
The name attribute sets trend line name. Names can be random or set automatically. When the names are automatic, one of the default values is created depending on the selected line type:
|
backwardForecast |
The backwardForecast attribute sets the number of backward forecast points. |
forwardForecast |
The forwardForecast attribute sets the number of forward forecast points. |
Peaks |
The Peaks attribute sets peak interval. This is relevant only for Peaks type trend line. |
useAutomaticText |
The useAutomaticText attribute indicates whether to use auto name for trend line. Available values:
|
showInLegend |
The showInLegend attribute determines whether trend line is shown in chart legend. Available values:
|
lineWidth |
The lineWidth attribute sets trend line width. |
lineColor |
The lineColor attribute defines trend line color. |
dashStyle |
The dashStyle attribute defines trend line style. Available values:
Various combinations of these variants are possible. |
The example of using the trendLine element is given on the Chart Trend Line Setup page.
See also: