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

ChartPlotBandsBuilder

Methods

From(System.Object)

Sets the plot band start position.

Parameters

from - System.Object

The plot band start position.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis
                           .PlotBands(plotBands => plotBands
                                 .Add().From(1).Color("Red")
                           )
                      )
            )

To(System.Object)

Sets the plot band end position.

Parameters

to - System.Object

The plot band end position.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis
                           .PlotBands(plotBands => plotBands
                                 .Add().To(2).Color("Red")
                           )
                      )
            )

Color(System.String)

Sets the plot band background color

Parameters

color - System.String

The plot band background color.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis
                           .PlotBands(plotBands => plotBands
                                 .Add().Color("Red")
                           )
                      )
            )

Opacity(System.Double)

Sets the plot band opacity

Parameters

opacity - System.Double

The plot band opacity.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis
                           .PlotBands(plotBands => plotBands
                                 .Add().Opacity(0.5)
                           )
                      )
            )

Label(System.Action)

The label configuration of the plotband.

Parameters

configurator - System.Action<ChartPlotBandLabelBuilder>

The configurator for the label setting.

In this article
Not finding the help you need?