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

ChartSeriesLabelsToBorderSettingsBuilder

Methods

Color(System.String)

The color of the border. Accepts a valid CSS color string, including hex and rgb.

Parameters

value - System.String

The value that sets the Color

Example


            @(Html.Kendo().Chart()
                .Name("Chart")
                .Series(series => series
                    .RangeArea(
                        m => m.FromSales,
                        m => m.ToSales
                    )
                    .Labels(l => l
                        .To(t => t
                            .Border(b => b
                                .Color("red")
                            )
                        )
                    )
                )
            )

ColorHandler(System.String)

The color of the border. Accepts a valid CSS color string, including hex and rgb.

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

Example


            @(Html.Kendo().Chart()
                .Name("Chart")
                .Series(series => series
                    .RangeArea(
                        m => m.FromSales,
                        m => m.ToSales
                    )
                    .Labels(l => l
                        .To(t => t
                            .Border(b => b
                                .ColorHandler("colorHandler")
                            )
                        )
                    )
                )
            )

ColorHandler(System.Func)

The color of the border. Accepts a valid CSS color string, including hex and rgb.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().Chart()
                .Name("Chart")
                .Series(series => series
                    .RangeArea(
                        m => m.FromSales,
                        m => m.ToSales
                    )
                    .Labels(l => l
                        .To(t => t
                            .Border(b => b
                                .ColorHandler(
                                    @<text>
                                        function(e) {  
                                            // event handler code  
                                        }
                                    </text>
                                )
                            )
                        )
                    )
                )
            )

Width(System.Double)

The width of the border in pixels. By default the border width is set to zero which means that the border will not appear.

Parameters

value - System.Double

The value that sets the Width

Example


            @(Html.Kendo().Chart()
                .Name("Chart")
                .Series(series => series
                    .RangeArea(
                        m => m.FromSales,
                        m => m.ToSales
                    )
                    .Labels(l => l
                        .To(t => t
                            .Border(b => b
                                .Width(100)
                            )
                        )
                    )
                )
            )

WidthHandler(System.String)

The width of the border in pixels. By default the border width is set to zero which means that the border will not appear.

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

Example


            @(Html.Kendo().Chart()
                .Name("Chart")
                .Series(series => series
                    .RangeArea(
                        m => m.FromSales,
                        m => m.ToSales
                    )
                    .Labels(l => l
                        .To(t => t
                            .Border(b => b
                                .WidthHandler("widthHandler")
                            )
                        )
                    )
                )
            )

WidthHandler(System.Func)

The width of the border in pixels. By default the border width is set to zero which means that the border will not appear.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().Chart()
                .Name("Chart")
                .Series(series => series
                    .RangeArea(
                        m => m.FromSales,
                        m => m.ToSales
                    )
                    .Labels(l => l
                        .To(t => t
                            .Border(b => b
                                .WidthHandler(
                                    @<text>
                                        function(e) {  
                                            // event handler code  
                                        }
                                    </text>
                                )
                            )
                        )
                    )
                )
            )

DashType(Kendo.Mvc.UI.ChartDashType)

The dash type of the border.

Parameters

value - ChartDashType

The value that sets the DashType

Example


            @(Html.Kendo().Chart()
                .Name("Chart")
                .Series(series => series
                    .RangeArea(
                        m => m.FromSales,
                        m => m.ToSales
                    )
                    .Labels(l => l
                        .To(t => t
                            .Border(b => b
                                .DashType(ChartDashType.Solid)
                            )
                        )
                    )
                )
            )

In this article
Not finding the help you need?