DxPolarChartValueAxis.AllowDecimals Property
Specifies whether the value axis displays labels with decimal values.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.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 value axis labels. Use the AllowDecimals
property to specify how the component displays these values.
<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