Kendo.Mvc.UI.Fluent.ChartRangeAreaLabelsBuilder

Defines the fluent interface for configuring the chart data labels.

Methods

From(System.Boolean)

Sets the from label visibility

Parameters

visible System.Boolean

Boolean parameter to configure the visibility

Example (ASPX)

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

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

Configures the from label

Parameters

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

The from label configuration

Example (ASPX)

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

To(System.Boolean)

Sets the from label visibility

Parameters

visible System.Boolean

Boolean parameter to configure the visibility

Example (ASPX)

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

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

Configures the from label

Parameters

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

The from label configuration

Example (ASPX)

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

Position(Kendo.Mvc.UI.ChartRangeAreaLabelsPosition)

Sets the labels position

Parameters

position Kendo.Mvc.UI.ChartRangeAreaLabelsPosition

The labels position.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .RangeArea(f => f.FromSales, t => t.ToSales)
        .Labels(labels => labels
            .Position(ChartPointLabelsPosition.Above)
            .Visible(true)
        )
    )
)
In this article
Not finding the help you need?