New to Kendo UI for Angular? Start a free 30-day trial
SeriesTrendlineComponent
Represents the configuration options of the Chart trendline series (see example).
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>
Selector
kendo-chart-series-item-trendline
Inputs
Name | Type | Default | Description |
---|---|---|---|
forecast |
|
Specifies the forecast configuration for the trendline. | |
order |
|
Specifies the order for the trendline. | |
period |
|
Specifies the period for the trendline. |
Methods
notifyChanges | ||||||
---|---|---|---|---|---|---|
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. ts
| ||||||
|