Kendo.Mvc.UI.Fluent.ChartPieConnectorsBuilder

Defines the fluent interface for configuring the chart connectors.

Methods

Width(System.Int32)

Sets the connectors width

Parameters

width System.Int32

The connectors width.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .Pie(p => p.Sales)
        .Connectors(c => c
            .Width(3)
        )
    )
)

Color(System.String)

Sets the connectors color

Parameters

color System.String

The connectors color.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .Pie(p => p.Sales)
        .Connectors(c => c
            .Color(red)
        )
    )
)

Color(System.Func<System.Object,System.Object>)

Sets the function used to retrieve connector color.

Parameters

colorFunction System.Func<System.Object,System.Object>

The JavaScript function that will be executed to retrieve the color of each connector.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .Pie(p => p.Sales)
        .Connectors(c => c
            .ColorHandler(
                @<text>
                    function(point) {
                    return point.value > 5 ? "red" : "green";
                    }
                    </text>
                )
            )
        )
    )

Padding(System.Int32)

Sets the connectors padding

Parameters

padding System.Int32

The connectors padding.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Series(series => series
        .Pie(p => p.Sales)
        .Connectors(c => c
            .Padding(10)
        )
    )
)
In this article
Not finding the help you need?