blazor-devexpress-dot-blazor-dot-dxpolarchartbaseseries-3-9dcd2575.md
Specifies whether the series should break on points with null values.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public bool BreakOnEmptyPoints { get; set; }
| Type | Description |
|---|---|
| Boolean |
true to break the series on null points; otherwise, false.
|
The default series does not render empty (null) values. The following image displays a series when the March argument has the null value (the corresponding series point is omitted):
Set the BreakOnEmptyPoints property to true to remove polyline segments that correspond to points with null values.
The following code snippet demonstrates a break at the null value on the same dataset used in the example above:
<DxPolarChart Data="@DataSource">
<DxPolarChartLineSeries ArgumentField="@((DiscretePoint i) => i.Arg)"
ValueField="@((DiscretePoint i) => i.Day)"
BreakOnEmptyPoints="true">
</DxPolarChartLineSeries>
</DxPolarChart>
@code {
IEnumerable<DiscretePoint> DataSource = Enumerable.Empty<DiscretePoint>();
protected override void OnInitialized () {
DataSource = ChartDiscreteDataProvider.GenerateData();
}
}
namespace BlazorDemo.Data {
public class DiscretePoint {
public string Arg { get; set; }
public int? Day { get; set; }
public int Night { get; set; }
public DiscretePoint(string arg, int? day, int night) {
Arg = arg;
Day = day;
Night = night;
}
}
}
using System.Collections.Generic;
using BlazorDemo.Data;
namespace BlazorDemo.DataProviders.Implementation {
public class ChartDiscreteDataProvider : IChartDiscreteDataProvider {
public List<DiscretePoint> GenerateData() {
return new List<DiscretePoint>() {
new DiscretePoint("January", 6, 2),
new DiscretePoint("February", 7, 2),
new DiscretePoint("March", null, 3),
new DiscretePoint("April", 14, 5),
new DiscretePoint("May", 18, 8),
new DiscretePoint("June", 21, 11),
new DiscretePoint("July", 22, 13),
new DiscretePoint("August", 22, 13),
new DiscretePoint("September", 19, 11),
new DiscretePoint("October", 15, 8),
new DiscretePoint("November", 10, 5),
new DiscretePoint("December", 7, 3),
};
}
}
}
See Also
DxPolarChartBaseSeries<T, TArgument, TValue> Class