Kendo.Mvc.UI.Fluent.ChartRangeAreaSeriesBuilder

Defines the fluent interface for configuring RangeArea series.

Methods

Aggregate(Kendo.Mvc.UI.ChartSeriesAggregate)

Sets the aggregate function for Range Area 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.RangeArea(f => f.FromSales, t => t.ToSales).Aggregate(ChartSeriesAggregate.Avg))
)

Line(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType,Kendo.Mvc.UI.ChartAreaStyle)

Configures the range area chart line.

Parameters

width System.Int32

The line width.

color System.String

The line color.

dashType Kendo.Mvc.UI.ChartDashType

The line dashType.

style Kendo.Mvc.UI.ChartAreaStyle

The line style.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeArea(f => f.From, t => t.To)
        .Line(2, "red", ChartDashType.Dot, ChartAreaStyle.Smooth)
    )
)

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

Configures the range area chart line.

Parameters

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

The configuration action.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeArea(f => f.From, t => t.To)
        .Line(line => line.Opacity(0.2))
    )
)

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

Configures the range area chart labels.

Parameters

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

The configuration action.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeArea(f => f.From, t => t.To)
        .Labels(labels => labels
            .Visible(true)
        )
    )
)

Labels(System.Boolean)

Sets the visibility of range area chart labels.

Parameters

visible System.Boolean

The visibility. The default value is false.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeArea(f => f.From, t => t.To)
        .Labels(true);
    )
)

Markers(System.Action<Kendo.Mvc.UI.Fluent.ChartRangeAreaMarkersBuilder>)

Configures the range area chart markers.

Parameters

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

The configuration action.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeArea(f => f.From, t => t.To)
        .Markers(markers => markers
            .Type(ChartMarkerShape.Triangle)
        )
    )
)

Markers(System.Boolean)

Sets the visibility of range area chart markers.

Parameters

visible System.Boolean

The visibility. The default value is false.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeArea(f => f.From, t => t.To)
        .Markers(true);
    )
)

MissingValues(Kendo.Mvc.UI.ChartAreaMissingValues)

Configures the behavior for handling missing values in range area series.

Parameters

missingValues Kendo.Mvc.UI.ChartAreaMissingValues

The missing values behavior. The default is to interpolate the points.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeArea(f => f.From, t => t.To)
        .MissingValues(ChartAreaMissingValues.Interpolate);
    )
)

FromField(System.String)

Sets the from field for the series

Parameters

field System.String

The from field for the series

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series.RangeArea(Model.Records).FromField("From").ToField("To"))
)

ToField(System.String)

Sets the to field for the series

Parameters

field System.String

The to field for the series

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series.RangeArea(Model.Records).FromField("From").ToField("To"))
)

CategoryField(System.String)

Sets the category field for the series

Parameters

categoryField System.String

The category field for the series

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series.RangeArea(Model.Records).FromField("From").ToField("To").CategoryField("Category"))
)

ColorField(System.String)

Sets the color field for the series

Parameters

colorField System.String

The color field for the series

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series.Area(Model.Records).Field("Value").ColorField("Color"))
)
In this article
Not finding the help you need?