Kendo.Mvc.UI.Fluent.ErrorBarsBuilderBase

Defines the fluent interface for configuring the chart error bars.

Fields

errorBars

The error bars configuration.

Methods

Color(System.String)

Sets the error bars color.

Parameters

color System.String

The error bars color.

Example (Razor)

@(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 (Razor)

@(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 Kendo.Mvc.UI.ChartDashType

The line dash type.

Example (Razor)

@(Html.Kendo().Chart(Model)
    .Name("chart")
    .Series(series => series
        .Bar(s => s.Sales)
        .ErrorBars(e => e.Line(2, "red", ChartDashType.Dot))
    )
)

Line(System.Action<Kendo.Mvc.UI.Fluent.ChartLineBuilderBase>)

Configures the error bars lines.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLineBuilderBase>

The configuration action.

Example (Razor)

@(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 (Razor)

@(Html.Kendo().Chart(Model)
    .Name("chart")
    .Series(series => series
        .Bar(s => s.Sales)
        .ErrorBars(e => e.Visual("errorBarVisual"))
    )
)

Visual(System.Func<System.Object,System.Object>)

Sets the error bar visual handler

Parameters

handler System.Func<System.Object,System.Object>

The handler

Example (Razor)

@(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>
                )
            )
        )
    )
In this article
Not finding the help you need?