Back to Devexpress

DxChartAxisTick.Opacity Property

blazor-devexpress-dot-blazor-dot-dxchartaxistick-3318674a.md

latest1.5 KB
Original Source

DxChartAxisTick.Opacity Property

Specifies the tick transparency.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public double Opacity { get; set; }

Property Value

TypeDefaultDescription
Double1

The opacity value.

|

Remarks

Use the Opacity property to specify tick transparency. The property accepts a value from 0 to 1, where 0 makes ticks transparent and 1 makes them opaque. You can also change the tick color.

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>

See Also

DxChartAxisTick Class

DxChartAxisTick Members

DevExpress.Blazor Namespace