New to Telerik UI for .NET MAUIStart a free 30-day trial

Defines the appearance of the background major grid lines drawn across the plot area of a Cartesian RadCartesianChart, assigned through Grid. Grid lines are aligned with the major tick positions of the chart's axes and help readers estimate data values without needing to trace back to the axis itself.

Definition

Namespace:Telerik.Maui.Controls.Charts

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public sealed class CartesianChartGrid : StyleableElement

Inheritance: objectCartesianChartGrid

Constructors

Initializes a new instance of the CartesianChartGrid class.

C#
public CartesianChartGrid()

Fields

MajorLineColorProperty

BindableProperty

Identifies the MajorLineColor bindable property.

C#
public static readonly BindableProperty MajorLineColorProperty

Identifies the MajorLinesVisibility bindable property.

C#
public static readonly BindableProperty MajorLinesVisibilityProperty

Identifies the MajorLineThickness bindable property.

C#
public static readonly BindableProperty MajorLineThicknessProperty

StyleProperty

BindableProperty

Identifies the Style bindable property.

C#
public static readonly BindableProperty StyleProperty

Properties

Gets or sets the color used to draw major grid lines. Set to null to use the color defined by the active theme.

C#
public Color MajorLineColor { get; set; }

Gets or sets which set of major grid lines — horizontal, vertical, both, or neither — is drawn. The default value is Both.

C#
public ChartGridLinesVisibility MajorLinesVisibility { get; set; }

Gets or sets the stroke thickness, in device-independent units, of major grid lines. The value must be greater than or equal to 0; the default is 1.0.

C#
public double MajorLineThickness { get; set; }

Style

Style

Gets or sets the style applied to this chart grid.

C#
public Style Style { get; set; }