New to Kendo UI for AngularStart 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

NameTypeDefaultDescription

forecast

TrendlineForecast

Specifies the forecast configuration for the trendline.

order

number

Specifies the order for the trendline.

period

number

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
item.notifyChanges({ visible: true });
Parameters

changes

any

An object containing the updated input fields.

In this article
SelectorInputsMethods
Not finding the help you need?
Contact Support