Skip to main content
All docs
V24.2

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

DxChartAxisLabelBase<T>.Format Property

Specifies the display format for axis labels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public ChartElementFormat Format { get; set; }

#Property Value

Type Description
ChartElementFormat

An enumeration value.

#Remarks

The following code formats a value axis’s labels:

Razor
<DxChartValueAxis>
    <DxChartAxisLabel Format="ChartElementFormat.Decimal()"></DxChartAxisLabel>
</DxChartValueAxis>

You can use the following built-in formats. To be in effect, an applied format should be compatible with the axis type. Refer to the following section for a list of available formats: Value Formats.

Blazor charts also support custom format strings. Refer to the following topic for more information: FromLdmlString(String).

See Also