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");
})
)
)