Skip to main content
All docs
V25.1
  • DxChartAxisLabelBase<T>.Format Property

    Specifies the display format for axis labels.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

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

    Property Value

    Type Description
    ChartElementFormat

    An enumeration value.

    Remarks

    The following code formats a value axis’s labels:

    <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