ErrorBarsBuilderBase
Methods
Color(System.String)
Sets the error bars color.
Parameters
color - System.String
The error bars color.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Color("red"))
)
)
EndCaps(System.Boolean)
Sets a value indicating if the end caps should be shown.
Parameters
endCaps - System.Boolean
A value indicating if the end caps should be shown.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.EndCaps("false"))
)
)
Line(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)
Configures the error bars lines.
Parameters
width - System.Int32
The line width.
color - System.String
The line color.
dashType - ChartDashType
The line dash type.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Line(2, "red", ChartDashType.Dot))
)
)
Line(System.Action)
Configures the error bars lines.
Parameters
configurator - System.Action<ChartLineBuilderBase>
The configuration action.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Line(l => l.Width(2)))
)
)
Visual(System.String)
Sets the error bar visual handler
Parameters
handler - System.String
The JavaScript handler name.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Visual("errorBarVisual"))
)
)
Visual(System.Func)
Sets the error bar visual handler
Parameters
handler - System.Func<Object,Object>
The handler
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Visual(
@<text>
function(e) {
return e.createVisual(); // returns the default visual
}
</text>
)
)
)
)