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

Defines the fluent API for configuring ChartCategoryAxisMajorGridLinesSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class ChartCategoryAxisMajorGridLinesSettingsBuilder<T> where T : class

Inheritance: objectChartCategoryAxisMajorGridLinesSettingsBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChartCategoryAxisMajorGridLinesSettingsBuilder<T> class.

C#
public ChartCategoryAxisMajorGridLinesSettingsBuilder(ChartCategoryAxisMajorGridLinesSettings<T> container)
Parameters:containerChartCategoryAxisMajorGridLinesSettings<T>

The ChartCategoryAxisMajorGridLinesSettings<T> container

Properties

C#
protected ChartCategoryAxisMajorGridLinesSettings<T> Container { get; }

Methods

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

C#
public ChartCategoryAxisMajorGridLinesSettingsBuilder<T> Color(string value)
Parameters:valuestring

The value for Color

Returns:

ChartCategoryAxisMajorGridLinesSettingsBuilder<T>

Returns the current ChartCategoryAxisMajorGridLinesSettingsBuilder<T> instance.

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.

C#
public ChartCategoryAxisMajorGridLinesSettingsBuilder<T> DashType(ChartDashType value)
Parameters:valueChartDashType

The value for DashType

Returns:

ChartCategoryAxisMajorGridLinesSettingsBuilder<T>

Returns the current ChartCategoryAxisMajorGridLinesSettingsBuilder<T> instance.

The skip of the category axis major grid lines.

C#
public ChartCategoryAxisMajorGridLinesSettingsBuilder<T> Skip(double value)
Parameters:valuedouble

The value for Skip

Returns:

ChartCategoryAxisMajorGridLinesSettingsBuilder<T>

Returns the current ChartCategoryAxisMajorGridLinesSettingsBuilder<T> instance.

The step of the category axis major grid lines.

C#
public ChartCategoryAxisMajorGridLinesSettingsBuilder<T> Step(double value)
Parameters:valuedouble

The value for Step

Returns:

ChartCategoryAxisMajorGridLinesSettingsBuilder<T>

Returns the current ChartCategoryAxisMajorGridLinesSettingsBuilder<T> instance.

Makes the major grid lines visible.

C#
public ChartCategoryAxisMajorGridLinesSettingsBuilder<T> Visible()
Returns:

ChartCategoryAxisMajorGridLinesSettingsBuilder<T>

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(categoryAxis =&gt; categoryAxis.MajorGridLines(mgl =&gt; mgl.Visible()))
)

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

C#
public ChartCategoryAxisMajorGridLinesSettingsBuilder<T> Visible(bool value)
Parameters:valuebool

The value for Visible

Returns:

ChartCategoryAxisMajorGridLinesSettingsBuilder<T>

Returns the current ChartCategoryAxisMajorGridLinesSettingsBuilder<T> instance.

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(categoryAxis =&gt; categoryAxis.MajorGridLines(mgl =&gt; mgl.Visible()))
)

The width of the category axis major grid lines in pixels.

C#
public ChartCategoryAxisMajorGridLinesSettingsBuilder<T> Width(double value)
Parameters:valuedouble

The value for Width

Returns:

ChartCategoryAxisMajorGridLinesSettingsBuilder<T>

Returns the current ChartCategoryAxisMajorGridLinesSettingsBuilder<T> instance.