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
[DefaultValue(null)]
[Parameter]
public bool? AllowDecimals { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Nullable<Boolean> | null |
|
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.
<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