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

ChartBorderBuilder

Methods

Color(System.String)

Sets the border color.

Parameters

color - System.String

The border color (CSS format).

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ChartArea(chartArea => chartArea.Border(border => border.Color("#f00")))
            )

Opacity(System.Double)

Sets the border opacity

Parameters

opacity - System.Double

The border opacity (CSS format).

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ChartArea(chartArea => chartArea.Border(border => border.Opacity(0.2)))
            )

Width(System.Int32)

Sets the border width.

Parameters

width - System.Int32

The border width.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ChartArea(chartArea => chartArea.Border(border => border.Width(2)))
            )

DashType(Kendo.Mvc.UI.ChartDashType)

Sets the border dashType.

Parameters

dashType - ChartDashType

The border dashType.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ChartArea(chartArea => chartArea.Border(border => border.DashType(ChartDashType.Dot)))
            )

In this article
Not finding the help you need?