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

ChartMinorGridLinesBuilder

Methods

Skip(System.Int32)

Sets the line skip

Parameters

skip - System.Int32

The line skip.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MinorGridLines(lines => lines.Skip(2)))
            )

Step(System.Int32)

Sets the line step

Parameters

step - System.Int32

The line step.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MinorGridLines(lines => lines.Step(2)))
            )

Visible(System.Boolean)

Sets the line visibility

Parameters

visible - System.Boolean

The line visibility.

Example


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

Color(System.String)

Sets the line color

Parameters

color - System.String

The line color (CSS format).

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorGridLines(lines => lines.Color("#f00")))
            )

Width(System.Int32)

Sets the line width

Parameters

width - System.Int32

The line width.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorGridLines(lines => lines.Width(2)))
            )

DashType(Kendo.Mvc.UI.ChartDashType)

Sets the line dashType.

Parameters

dashType - ChartDashType

The line dashType.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorGridLines(lines => lines.DashType(ChartDashType.Dot)))
            )

In this article
Not finding the help you need?