New to Telerik UI for ASP.NET MVC? Download free 30-day trial

ChartSeriesTrendlineSettingsBuilder

Methods

Order(System.Int32)

The order (degree) of the Polynomial trendline. The default value is 2.

Parameters

value - System.Int32

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                       .Series(series => {
                            series.PolynomialTrendline()
                                .Trendline(trendline => trendline.Order(3));
                        })
            )

Period(System.Int32)

The number of intervals to take when calculating Moving Average trendline. The value should be an integer greater than 2.

Parameters

value - System.Int32

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                       .Series(series => {
                            series.MovingAverageTrendline()
                                .Trendline(trendline=>trendline.Period(4));
                        })
            )

Forecast(System.Action)

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

Parameters

configurator - System.Action<ChartSeriesTrendlineForecastSettingsBuilder>

The trendline forecast settings.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                       .Series(series => {
                            series.MovingAverageTrendline()
                                .Trendline(trendline=>trendline.Forecast(f=>f.After()));
                        })
            )

In this article
Not finding the help you need?