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

ChartAxisDefaultsMajorGridLinesSettingsBuilder

Methods

Visible()

If disabled, the Chart will not display the major grid lines. By default, the major grid lines are visible.

Example


            @(Html.Kendo().Chart()
                       .Name("chart")
                       .AxisDefaults(axis => axis
                           .MajorGridLines(lines => lines.Visible(true))
                       )
            )

Color(System.String)

The color of the major grid lines. Accepts a valid CSS color string, including hex and rgb.

Parameters

value - System.String

The value for Color

DashType(Kendo.Mvc.UI.ChartDashType)

The dash type of the major grid lines.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

Visible(System.Boolean)

If set to false the chart will not display the major grid lines. By default the major grid lines are visible.

Parameters

value - System.Boolean

The value for Visible

Width(System.Double)

The width of the axis major grid lines in pixels.

Parameters

value - System.Double

The value for Width

Step(System.Double)

The step of the axis major grid lines.

Parameters

value - System.Double

The value for Step

Skip(System.Double)

The skip of the axis major grid lines.

Parameters

value - System.Double

The value for Skip

In this article
Not finding the help you need?