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.Color Property

Specifies the tick color.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public Color Color { get; set; }

#Property Value

Type Description
Color

The color of ticks.

#Remarks

Use the Color and Opacity properties to change the tick color and transparency.

The following code snippet specifies the color and transparency of ticks:

Razor
@using Chart.Data
@using System.Drawing;

<DxChart Data="@forecasts">
    <DxChartLineSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                       ValueField="@((WeatherForecast i) => i.TemperatureF)"
                       Name="Temperature, F" />
    <DxChartValueAxis>
        <DxChartAxisTick Color="Color.Red" Opacity="0.5" />
    </DxChartValueAxis>
</DxChart>

Opaque minor ticks

See Also