Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxChartAxisGridLines Class

Defines settings for axis grid lines.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public class DxChartAxisGridLines :
    DxSettingsComponent<ChartAxisGridLinesModel>

#Remarks

Grid lines span across the entire plot area in <DxChart> and <DxPolarChart>. These lines help users to compare point positions with corresponding axis values.

Use the DxChartAxisGridLines object to customize grid lines in the following components:

DxChart<T>
A control that visualizes bound data as graphs: bar, area, line, and others.
DxPolarChart<T>
A control that visualizes bound data as graphs in polar coordinates.

Default Grid Lines

The following example disables grid lines:

<DxChart Data="forecasts">
    <DxChartLineSeries ArgumentField="@((WeatherForecast v) => v.Date)"
                       ValueField="@((WeatherForecast v) => v.TemperatureC)" />
    <DxChartValueAxis>
        <DxChartAxisGridLines Visible="false" />
    </DxChartValueAxis>
    @* ... *@
</DxChart>

Disabled Grid Lines

#Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartAxisGridLinesModel>
DxChartAxisGridLines
See Also