Search results

Trendlines API in JavaScript (ES5) Chart API control

Trendline module is used to render 6 types of trendlines in chart.

Methods

destroy

To destroy the trendline.

Returns void

getTrendLineElements

Retrieves the elements required for rendering trendlines for a series in the chart.

Parameter Type Description
series Series The series for which trendlines are to be rendered.
chart Chart The chart instance.

Returns void

initDataSource

Initializes the data source for the trendline.

Parameter Type Description
trendline Trendline The trendline configuration.

Returns void

initSeriesCollection

Initializes the series collection for the specified trendline in the chart.

Parameter Type Description
trendline Trendline The trendline for which the series collection is initialized.
chart Chart The chart instance.

Returns void