DxChartValueAxis.AllowDecimals Property
Specifies whether to allow decimal values on the axis.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v21.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 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
See Also