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

ChartAxisPlotBandsFactory

Methods

Add()

Adds a plot band.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a
                            .Numeric()
                            .PlotBands(pb =>
                            {
                                pb.Add().From(20000).To(40000).Color("red").Opacity(20);
                            })
                      )
            )

Add(System.Double,System.Double,System.String)

Defines a plot band.

Parameters

from - System.Double

The start position of the plot band in axis units.

to - System.Double

The end position of the plot band in axis units.

color - System.String

The color of the plot band.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a
                            .Numeric()
                            .PlotBands(pb =>
                            {
                                pb.Add(20000, 40000, "red");
                            })
                      )
            )

Add(Kendo.Mvc.UI.Fluent.TValue,Kendo.Mvc.UI.Fluent.TValue,System.String)

Parameters

from - TValue
to - TValue
color - System.String

Add(Kendo.Mvc.UI.Fluent.TValue,Kendo.Mvc.UI.Fluent.TValue,System.String,Kendo.Mvc.UI.ChartPlotBandLabel)

Parameters

from - TValue
to - TValue
color - System.String
label - ChartPlotBandLabel
In this article
Not finding the help you need?