DxPolarChartValueAxis Class
Defines a Polar Chart’s value axis.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
Declaration
public class DxPolarChartValueAxis :
DxChartAxisBase<PolarChartValueAxisModel>,
IModelProvider<ChartAxisLabelBaseModel>
Remarks
You can use properties of the DxChartAxisBase<T> and DxPolarChartValueAxis
objects to configure value axis settings and appearance.
The following code snippet customizes the value axis:
<DxPolarChart Data="@GetData()">
<DxChartLegend Visible="false" />
<DxPolarChartArgumentAxis Type="ChartAxisType.Discrete"
StartAngle="25" />
<DxPolarChartValueAxis Type="ChartAxisType.Logarithmic"
LogarithmBase="2"
LinearThreshold="4" />
<DxPolarChartLineSeries ArgumentField="@((DataPoint s) => s.Argument)"
ValueField="@((DataPoint s) => s.Value)"
Closed="false" />
</DxPolarChart>
@code {
List<DataPoint> GetData() {
List<DataPoint> result = new List<DataPoint>(11);
result.Add(new DataPoint("Silence", 0));
result.Add(new DataPoint("Breathing", 0.075));
result.Add(new DataPoint("Whisper", 0.15));
result.Add(new DataPoint("Street noise", 8));
result.Add(new DataPoint("Jackhammer", 32));
result.Add(new DataPoint("Subway train", 64));
result.Add(new DataPoint("Loud music", 128));
result.Add(new DataPoint("Pain threshold", 256));
result.Add(new DataPoint("Buzzer", 512));
result.Add(new DataPoint("Rocket launch", 2048));
result.Add(new DataPoint("Deadly level", 16348));
return result;
}
struct DataPoint {
public DataPoint (string argument, double value) { Argument = argument; Value = value; }
public string Argument { get; set; }
public double Value { get; set; }
}
}
Nested Axis Components
You can add the following child components to a value axis:
- DxChartAxisLabel
- Defines settings for axis labels.
- DxChartConstantLine
- Specifies an axis constant line.
The following example demonstrates components of the value axis:
<DxPolarChart T="DataItem" Data=@data>
<DxPolarChartValueAxis>
<DxChartConstantLine Value="1.5" />
<DxChartAxisLabel IndentFromAxis="15" />
</DxPolarChartValueAxis>
@* ... *@
</DxPolarChart>
Inheritance
Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.PolarChartValueAxisModel>
DxComplexSettingsComponent<DxChartAxisBase<DevExpress.Blazor.Internal.PolarChartValueAxisModel>, DevExpress.Blazor.Internal.PolarChartValueAxisModel>
DxChartAxisBase<DevExpress.Blazor.Internal.PolarChartValueAxisModel>
DxPolarChartValueAxis
See Also