Back to Devexpress

DxPolarChartArgumentAxis.StartAngle Property

blazor-devexpress-dot-blazor-dot-dxpolarchartargumentaxis-1f5b233c.md

latest2.5 KB
Original Source

DxPolarChartArgumentAxis.StartAngle Property

Specifies the start angle of the argument axis.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(0)]
[Parameter]
public int StartAngle { get; set; }

Property Value

TypeDefaultDescription
Int320

The start angle, in degrees.

|

Remarks

Use the StartAngle property to rotate the Polar Chart’s argument axis clockwise (negative angles) or counterclockwise (positive angles).

The following code snippet sets the StartAngle property to 30:

razor
<DxPolarChart Data="@GetData()">
    <DxChartLegend Visible="false" />
    <DxPolarChartArgumentAxis Type="ChartAxisType.Discrete"
                              StartAngle="30" />
    <DxPolarChartValueAxis Type="ChartAxisType.Logarithmic" LogarithmBase="2" />
    <DxPolarChartLineSeries ArgumentField="@((DataPoint s) => s.Argument)" ValueField="@((DataPoint s) => s.Value)" />
</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("Jackhummer", 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 start", 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; }
    }
}

Run Demo: Polar and Radar - Continuous Data

See Also

DxPolarChartArgumentAxis Class

DxPolarChartArgumentAxis Members

DevExpress.Blazor Namespace