New to Telerik UI for ASP.NET Core? Download free 30-day trial

ChartPieConnectorsBuilder

Methods

Width(System.Int32)

Sets the connectors width

Parameters

width - System.Int32

The connectors width.

Example


            @(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


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

Color(System.Func)

Sets the function used to retrieve connector color.

Parameters

colorFunction - System.Func<Object,Object>

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

Example


            @(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


            @(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?