Kendo.Mvc.UI.Fluent.ChartRangeBarSeriesBuilder

Defines the fluent interface for configuring RangeBar series.

Properties

RangeBarSeries

Gets the RangeBar series.

Methods

Stack(System.Boolean)

Sets a value indicating if the bars should be stacked.

Parameters

stacked System.Boolean

A value indicating if the bars should be stacked.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series.Bar(model => model.FromA, model => model.ToA).Stack(true))
)

Stack(System.String)

Sets the name of the stack that this series belongs to. Each unique name creates a new stack.

Parameters

stackGroup System.String

The name of the stack group.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series.RangeBar(model => model.FromA, model => model.ToA).Stack("Female"))
)

Stack(Kendo.Mvc.UI.ChartStackType,System.String)

Sets the type of stacking to use in the seris.

Parameters

stackType Kendo.Mvc.UI.ChartStackType

The stack type.

stackGroup System.String

The name of the stack group.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series.RangeBar(model => model.FromA, model => model.ToA).Stack(ChartStackType.Stack100))
)

Aggregate(Kendo.Mvc.UI.ChartSeriesAggregate)

Sets the aggregate function for date series. This function is used when a category (an year, month, etc.) contains two or more points.

Parameters

aggregate Kendo.Mvc.UI.ChartSeriesAggregate

Aggregate function name.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series.RangeBar(model => model.FromA, model => model.ToA).Aggregate(ChartSeriesAggregate.Avg))
)

Labels(System.Action<Kendo.Mvc.UI.Fluent.ChartBarLabelsBuilder>)

Configures the range bar chart labels.

Parameters

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

The configuration action.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeBar(model => model.FromA, model => model.ToA)
        .Labels(labels => labels
            .Position(ChartBarLabelsPosition.InsideEnd)
            .Visible(true)
        )
    )
)

Labels(System.Boolean)

Sets the visibility of range bar chart labels.

Parameters

visible System.Boolean

The labels visibility value. The default value is false.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeBar(model => model.FromA, model => model.ToA)
        .Labels(true)
    )
)

Labels(System.Action<Kendo.Mvc.UI.Fluent.ChartRangeBarLabelsBuilder>)

Configures the range bar chart labels.

Parameters

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

The configuration action.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeBar(model => model.FromA, model => model.ToA)
        .Labels(labels => labels.From(f => f.Visible(true)))
    )
)
In this article
Not finding the help you need?