Search results

Trendline API in JavaScript Chart API control

Defines the behavior of the Trendlines

Properties

animation

AnimationModel

Options to customize the animation for trendlines.

backwardForecast

number

Defines the period, by which the trend has to backward forecast.

Defaults to 0

dashArray

string

Defines the pattern of dashes and gaps to stroke.

Defaults to

enableTooltip

boolean

Enables/disables tooltip for trendlines.

Defaults to true

fill

string

Defines the fill color of trendline.

Defaults to

forwardForecast

number

Defines the period, by which the trend has to forward forecast.

Defaults to 0

intercept

number

Defines the intercept of the trendline.

Defaults to null

legendShape

LegendShape

Sets the legend shape of the trendline.

Defaults to ‘SeriesType’

marker

MarkerSettingsModel

Options to customize the marker for trendlines.

name

string

Defines the name of trendline.

Defaults to

period

number

Defines the period, the price changes over which will be considered to predict moving average trend line.

Defaults to 2

polynomialOrder

number

Defines the polynomial order of the polynomial trendline.

Defaults to 2

type

TrendlineTypes

Defines the type of the trendline.

Defaults to ‘Linear’

visible

boolean

Specifies the visibility of trendline.

Defaults to true

width

number

Defines the width of the trendline.

Defaults to 1