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

CategoricalErrorBarsBuilder

Methods

Value(System.String)

Sets the error bars value. The Value option is supported for Bar, Column, Line and Area Charts. The supported value types are: - stderr: The standard error of the series values will be used to calculate the point low and high value. - stddev(n): The standard deviation of the series values will be used to calculate the point low and high value. A number can be specified between the parentheses, that will be multiplied by the calculated standard deviation. - percentage(n): A percentage of the point value.

Parameters

value - System.String

The value that configures the error bars value.

Example


             @( Html.Kendo().Chart<ChartViewModel>()
                        .Name("chart")
                        .Series(series => series
                            .Bar(s => s.Sales)
                            .ErrorBars(e => e.Value("stderr"))
                        )
            )

Value(System.Double)

Sets the error bars difference from the point value. The Value option is supported for Bar, Column, Line and Area Charts.

Parameters

value - System.Double

A number that will be subtracted/added to the point value.

Example


             @(Html.Kendo().Chart<ChartViewModel>()
                        .Name("chart")
                        .Series(series => series
                            .Bar(s => s.Sales)
                            .ErrorBars(e => e.Value(1))
                        )
            )

Value(System.Double,System.Double)

Sets the error bars low and high value difference from the point value. The Value option is supported for Bar, Column, Line and Area Charts.

Parameters

lowValue - System.Double

The error bar low value difference from point value.

highValue - System.Double

The error bar high value difference from point value.

Example


             @( Html.Kendo().Chart<ChartViewModel>()
                        .Name("chart")
                        .Series(series => series
                            .Bar(s => s.Sales)
                            .ErrorBars(e => e.Value(1, 2))
                        )
            )

Value(System.Func)

Sets a handler function that returns the error bars point value. The Value option is supported for Bar, Column, Line and Area Charts.

Parameters

inlineCodeBlock - System.Func<Object,Object>

The handler code that returns the error bars point value.

Example


             @( Html.Kendo().Chart<ChartViewModel>()
                        .Name("chart")
                        .Series(series => series
                            .Bar(s => s.Sales)
                            .ErrorBars(e => e.Value(o =>
                                   @"function(data) {
                                       var value = data.value,
                                           lowPercentage = value * 0.05,
                                           highPercentage = value * 0.1;
                                       return [lowPercentage, highPercentage];
                                     }"
                             ))
                        )
            )

LowField(System.String)

Sets the error bars low field.

Parameters

lowField - System.String

The error bars low field.

Example


             @( Html.Kendo().Chart<ChartViewModel>()
                        .Name("chart")
                        .Series(series => series
                            .Bar(s => s.Sales)
                            .ErrorBars(e => e.LowField("Low"))
                        )
            )

HighField(System.String)

Sets the error bars high field.

Parameters

highField - System.String

The error bars high field.

Example


             @( Html.Kendo().Chart<ChartViewModel>()
                        .Name("chart")
                        .Series(series => series
                            .Bar(s => s.Sales)
                            .ErrorBars(e => e.HighField("High"))
                        )
            )

Fields(System.String,System.String)

Sets the error bars low and high fields.

Parameters

lowField - System.String

The error bars low field.

highField - System.String

The error bars high field.

Example


             @( Html.Kendo().Chart<ChartViewModel>()
                        .Name("chart")
                        .Series(series => series
                            .Bar(s => s.Sales)
                            .ErrorBars(e => e.Fields("Low", "High"))
                        )
            )

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>
                                )
                            )
                        )
            )

In this article
Not finding the help you need?