SeriesTrendlineComponent
Component
Represents the configuration options of the Chart trendline series (see example).
Definition
Package:@progress/kendo-angular-charts
Selector:kendo-chart-series-item-trendline
Syntax:
html
<kendo-chart [pannable]="{ lock: 'y' }" [zoomable]="{ mousewheel: { lock: 'y' } }">
<kendo-chart-series>
<kendo-chart-series-item
name="Sales By Quarter"
type="line"
[data]="salesByQuarter"
field="count"
categoryField="date">
</kendo-chart-series-item>
<kendo-chart-series-item
name="Sales Forecast"
type="linearTrendline"
for="Sales By Quarter">
<kendo-chart-series-item-trendline [forecast]="{ after: 10 }">
</kendo-chart-series-item-trendline>
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
Inputs
Specifies the forecast configuration for the trendline.
order
number
Specifies the order for the trendline.
period
number
Specifies the period for the trendline.
Methods
Updates the component fields with the specified values and refreshes the Chart.
Use this method when the configuration values cannot be set through the template.
Parameters:changesany
An object containing the updated input fields.