series.trendline.forecast.beforeNumber(default: 0)

The number of intervals to extend the trendline before the first data point.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [{
            date: new Date(2016, 0, 1),
            close: 41
        }, {
            date: new Date(2016, 0, 2),
            close: 42
        }, {
            date: new Date(2016, 0, 3),
            close: 43
        }]
    },
    series: [{
        type: "line",
        field: "close",
        name: "Price"
    }, {
        type: "linearTrendline",
        for: "Price",
        trendline: {
            forecast: {
                before: 2
            }
        }
    }]
});
</script>
In this article
series.trendline.forecast.before
Not finding the help you need?
Contact Support