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.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis.Numeric()
.PlotBands(bands =>
{
bands.Add().From(10000).To(30000).Label(label => label.Visible(false));
})
)
)