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

ChartPlotBandLabelBorderBuilder

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 for Color

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(axis => axis.Numeric()
                          .PlotBands(bands =>
                          {
                              bands.Add().From(10000).To(30000).Label(label => label.Border(border => border.Color("red")));
                          })
                      )
            )

DashType(Kendo.Mvc.UI.ChartDashType)

The dash type of the border.The following dash types are supported: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.

Parameters

value - ChartDashType

The value for DashType

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(axis => axis.Numeric()
                          .PlotBands(bands =>
                          {
                              bands.Add().From(10000).To(30000).Label(label => label.Border(border => border.DashType(ChartDashType.Dot)));
                          })
                      )
            )

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 for Width

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(axis => axis.Numeric()
                          .PlotBands(bands =>
                          {
                              bands.Add().From(10000).To(30000).Label(label => label.Border(border => border.Width(100)));
                          })
                      )
            )

In this article
Not finding the help you need?