DxChartValueAxis.AllowDecimals Property

Specifies whether to allow decimal values on the axis.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public bool AllowDecimals { get; set; }

Property Value

Type Description
Boolean

true, to allow decimal values on the axis; when false, the axis contains integer values only.

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="ChartAxisLabelFormat.Decimal"></DxChartAxisLabel>
        <DxChartAxisTitle Text="Amount"></DxChartAxisTitle>
    </DxChartValueAxis>
    ...
</DxChart>

Online Demo

Charts - Multiple Axes

See Also