Kendo.Mvc.UI.Fluent.ChartAreaSeriesBuilderBase

Defines the fluent interface for configuring area series.

Methods

Stack(System.Boolean)

Sets a value indicating if the areas should be stacked.

Parameters

stacked System.Boolean

A value indicating if the areas should be stacked.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series.Area(s => s.Sales).Stack(true))
)

Stack(Kendo.Mvc.UI.ChartStackType)

Sets a value indicating the type of stacking to use.

Parameters

type Kendo.Mvc.UI.ChartStackType

A value indicating the stacking type.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series.Area(s => s.Sales).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.Area(s => s.Sales).Aggregate())
)

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

Configures the area chart labels.

Parameters

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

The configuration action.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series
        .Area(s => s.Sales)
        .Labels(labels => labels
            .Visible(true)
        )
    )
)

Labels(System.Boolean)

Sets the visibility of area chart labels.

Parameters

visible System.Boolean

The visibility. The default value is false.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series
        .Area(s => s.Sales)
        .Labels(true)
    )
)

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

Configures the area chart markers.

Parameters

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

The configuration action.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series
        .Area(s => s.Sales)
        .Markers(markers => markers
            .Type(ChartMarkerShape.Triangle)
        )
    )
)

Markers(System.Boolean)

Sets the visibility of area chart markers.

Parameters

visible System.Boolean

The visibility. The default value is true.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series
        .Area(s => s.Sales)
        .Markers(true)
    )
)

MissingValues(Kendo.Mvc.UI.ChartAreaMissingValues)

Configures the behavior for handling missing values in area series.

Parameters

missingValues Kendo.Mvc.UI.ChartAreaMissingValues

The missing values behavior. The default is to leave gaps.

Example (ASPX)

@(Html.Kendo().Chart(Model)
    .Name("Chart")
    .Series(series => series
        .Area(s => s.Sales)
        .MissingValues(ChartAreaMissingValues.Interpolate)
    )
)

Field(System.String)

Sets the value field for the series

Parameters

field System.String

The value field for the series

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series.Area(Model.Records).Field("Value"))
)

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.Area(Model.Records).Field("Value").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"))
)

NoteTextField(System.String)

Sets the note text field for the series

Parameters

noteTextField System.String

The note text field for the series

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series.Area(Model.Records).Field("Value").NoteTextField("NoteText"))
)

Highlight(System.Action<Kendo.Mvc.UI.Fluent.ChartLineSeriesHighlightBuilder>)

Configures the series highlight

Parameters

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

The configuration action.

Example (ASPX)

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