Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxChartValueAxis.AllowDecimals Property

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

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.

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

#Online Demo

Charts - Multiple Axes

See Also