Skip to main content
All docs
V24.2

DxPolarChartValueAxis.AllowDecimals Property

Specifies whether the value axis displays labels with decimal values.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.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; false to display integer values only.

Remarks

The Polar Chart can display decimal and integer values on value axis labels. Use the AllowDecimals property to specify how the component displays these values.

Value Axis - Label Format

<DxPolarChart T="DecimalDataItem" Data=@data>
    <DxChartLegend Visible="false" />
    <DxPolarChartValueAxis AllowDecimals="true" />
    <DxPolarChartLineSeries ArgumentField="@((DecimalDataItem i) => i.Arg)" ValueField="@((DecimalDataItem i) => i.Val)" />
</DxPolarChart>

@code {
    List<DecimalDataItem> data = new List<DecimalDataItem> {
            new DecimalDataItem(1, 0),
            new DecimalDataItem(1.5, 0.5),
            new DecimalDataItem(2, 0.2)
    };

    class DecimalDataItem {
        public DecimalDataItem(double arg, double val) {
            Arg = arg;
            Val = val;
        }

        public double Arg { get; set; }
        public double Val { get; set; }
    }
}
See Also