DxChartValueAxis.AllowDecimals Property
In This Article
Specifies whether to allow decimal values on the axis.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
[DefaultValue(null)]
[Parameter]
public bool? AllowDecimals { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Nullable<Boolean> | null |
|
#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.
Razor
<DxChart Data="@SalesData">
<DxChartValueAxis AllowDecimals="true" >
<DxChartAxisLabel Format="ChartElementFormat.Decimal()"></DxChartAxisLabel>
<DxChartAxisTitle Text="Amount"></DxChartAxisTitle>
</DxChartValueAxis>
...
</DxChart>
#Online Demo
See Also