TrendlineDirective
12 Sep 20252 minutes to read
Series Directive
<e-series-collection>
<e-series>
<e-trendlines>
<e-trendline>
</e-trendline>
</e-trendlines>
</e-series-collection>Properties
accessibility any
Options to improve accessibility for chart trendline elements.
animation any
Options to customize the animation for trendlines.
backwardForecast any
Defines the period by which the trend is to be backward forecasted.
Defaults to 0
dashArray any
Configures the pattern of dashes and gaps in the trendline stroke using the dashArray property.
Defaults to ’’
enableTooltip any
Enables or disables the tooltip for the trendline using the enableTooltip property. By default, it is set to true.
Defaults to true
fill any
The fill color for the trendline, which accepts values in hex or rgba as valid CSS color strings.
Defaults to ’’
forwardForecast any
Defines the period by which the trend must be forward forecasted.
Defaults to 0
intercept any
Specifies the intercept value of the trendline.
Defaults to null
legendShape any
The legendShape property defines the shape used to represent the trendline in the chart legend.
Defaults to ‘SeriesType’
marker any
Options for customizing the markers for trendlines, including shape, size, color, and other visual aspects.
name any
The name property is used to assign a descriptive name to the trendline, which will be displayed in the chart as a legend.
Defaults to ’’
period any
Defines the period, the price changes over which will be considered to predict the moving average trendline.
Defaults to 2
polynomialOrder any
Defines the polynomial order of the polynomial trendline.
Defaults to 2
type any
Defines the type of trendline used in the series.
Available types are:
- Linear - A straight line that shows the general direction of data.
- Exponential - A curve that fits data with exponential growth or decay.
- Polynomial - A curve that fits data with a polynomial function.
- Power - A curve that represents data with a power function.
- Logarithmic - A curve that fits data with a logarithmic scale.
- MovingAverage - A trendline that smoothens data using a moving average calculation.
Defaults to ‘Linear’
visible any
The visible property controls the display of the trendline. If set to true, the trendline will be rendered on the chart. If set to false, the trendline will be hidden.
Defaults to true
width any
Defines the width of the trendline.
Defaults to 1