Back to Devexpress

DxChartAxisLabelBase<T>.Format Property

blazor-devexpress-dot-blazor-dot-dxchartaxislabelbase-1-8d192094.md

latest1.4 KB
Original Source

DxChartAxisLabelBase<T>.Format Property

Specifies the display format for axis labels.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public ChartElementFormat Format { get; set; }

Property Value

TypeDescription
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 additional information: FromLdmlString(String).

See Also

DxChartAxisLabelBase<T> Class

DxChartAxisLabelBase<T> Members

DevExpress.Blazor Namespace