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

DxChartAxisTick.Visible Property

Specifies whether major ticks are displayed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public bool Visible { get; set; }

#Property Value

Type Default Description
Boolean `true`

true to display ticks; otherwise, false.

#Remarks

The Chart component displays default axes with major ticks, and hides minor ticks.

Chart's default tick appearance

You can configure tick visibility for each axis independently. The following code snippet specifies the Visible property for both axis:

Razor
<DxChart Data="@forecasts">
    <DxChartLineSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                       ValueField="@((WeatherForecast i) => i.TemperatureF)"
                       Name="Temperature, F" />
    <DxChartArgumentAxis>
        <DxChartAxisTick Visible="false" />
    </DxChartArgumentAxis>
    <DxChartValueAxis>
        <DxChartAxisTick Visible="false" />
    </DxChartValueAxis>
</DxChart>

All Chart Ticks are hidden

To change visibility of minor ticks, use their Visible property.

See Also