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

ChartBorderBuilder

Methods

Color(System.String)

Sets the border color of the chart area.

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 of the chart area.

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 width of the border in pixels. By default, the border does not appear.

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 dash type of the chart area.

Parameters

dashType - ChartDashType

The enum value that sets the dash type.

Example


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

In this article
Not finding the help you need?