Skip to main content
All docs
V24.1

DxPolarChartLineSeries<T, TArgument, TValue>.Closed Property

Specifies whether to connect first and last series points.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public bool Closed { get; set; }

Property Value

Type Default Description
Boolean true

true to close the chart; otherwise, false.

Remarks

The default line series connects its first and last points:

Closed graph in polar coordinates

You can set the Closed property to false to disable a connection between first and last points as follows:

Linear Threshold

<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; }
    }
}
See Also