Skip to main content

DxChartValueAxis.AllowDecimals Property

Specifies whether to allow decimal values on the axis.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(null)]
[Parameter]
public bool? AllowDecimals { get; set; }

Property Value

Type Default Description
Nullable<Boolean> null

true to show decimal values on the axis; otherwise, false.

Remarks

On the axis, the chart can display decimal and integer values. Use the AllowDecimals property to specify whether to allow decimal values on the axis.

<DxChart Data="@SalesData">
    <DxChartValueAxis AllowDecimals="true" >
        <DxChartAxisLabel Format="ChartElementFormat.Decimal()"></DxChartAxisLabel>
        <DxChartAxisTitle Text="Amount"></DxChartAxisTitle>
    </DxChartValueAxis>
    ...
</DxChart>

Online Demo

Charts - Multiple Axes

See Also