Skip to main content
All docs
V24.2

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

DxPolarChartArgumentAxis.AllowDecimals Property

Specifies whether the argument axis displays labels with decimal values.

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 allow decimal values; false to display integer values only.

#Remarks

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

Argument axis - Label Format

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

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

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

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