Kendo.Mvc.UI.Fluent.ChartPieLabelsBuilder

Defines the fluent interface for configuring the chart data labels.

Methods

Align(Kendo.Mvc.UI.ChartPieLabelsAlign)

Sets the labels align

Parameters

align Kendo.Mvc.UI.ChartPieLabelsAlign

The labels align.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .Pie(p => p.Sales)
        .Labels(labels => labels
            .Align(ChartPieLabelsAlign.Column)
            .Visible(true)
        )
    )
)

Distance(System.Int32)

Sets the labels distance

Parameters

distance System.Int32

The labels distance.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .Pie(p => p.Sales)
        .Labels(labels => labels
            .Distance(20)
            .Visible(true)
        )
    )
)

Position(Kendo.Mvc.UI.ChartPieLabelsPosition)

Sets the labels position

Parameters

position Kendo.Mvc.UI.ChartPieLabelsPosition

The labels position.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .Pie(p => p.Sales)
        .Labels(labels => labels
            .Position(ChartPieLabelsPosition.Center)
            .Visible(true)
        )
    )
)
In this article
Not finding the help you need?