series.trendline.forecast Object

The trendline forecast settings. By default, the trendline does not display a forecast.

The forecast option is supported when series.type is set to "linearTrendline", "exponentialTrendline", "logarithmicTrendline" or "powerTrendline" and the parent series are either Date Series, "scatter" or "scatterLine" series.

Example - set the trendline forecast

  <div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [
      {
          period: "2021 Q1",
          date: new Date(2021, 0, 1),
          count: 669590.0
      },
      {
          period: "2021 Q2",
          date: new Date(2021, 3, 1),
          count: 793564.0
      },
      {
          period: "2021 Q3",
          date: new Date(2021, 6, 1),
          count: 941133.0
      },
      {
          period: "2021 Q4",
          date: new Date(2021, 9, 1),
          count: 1133020.0
      }
    ]
  },
  series: [{
    name: "Sales By Quarter",
    type: "line",
    field: "count",
    categoryField: "date"
  }, {
    name: "Sales Trend",
    type: "linearTrendline",
    for: "Sales By Quarter",
    trendline: {
      forecast: {
        before: 3,
        after: 5
      }
    }
  }]
});
</script>
In this article