DxChartAxisTitle.CssClass Property

Specifies the name of a CSS class applied to an axis title.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public string CssClass { get; set; }

Property Value

Type Description
String

The CSS class name.

Remarks

The following code shows how to apply a custom style to an axis title:

<style>
    .custom-style {
        color: #1B3580;
        font-style: italic;
        font-size: 20px;
    }
</style>

<DxChart Data="@WeatherForecasts">
    ....
    <DxChartArgumentAxis>
        <DxChartAxisTitle Text="Date" HorizontalAlignment="HorizontalAlignment.Left" CssClass="custom-style"/>
    </DxChartArgumentAxis>
    ....
</DxChart>

Refer to CSS Classes for more information.

See Also