Articles in this section
Category / Section

How to manage the empty values in WPF Chart (SfChart)?

1 min read

An Empty point called as NaN or Not a Null values. WPF Chart (SfChart) provides support to add empty points in chart area. You can show or hide the empty point of chart series by using ShowEmptyPoints property. If you want to differentiate the empty points from normal data points, you need to add the EmptypointStyle property to the series.

XAML

<!--Showing empty points in charts-->
<syncfusion:ColumnSeries ShowEmptyPoints="True" EmptyPointStyle="SymbolAndInterior"  XBindingPath="Year" YBindingPath="Count" ItemsSource="{Binding}"> 

C#

private void MyChart()
{
  ColumnSeries series = new ColumnSeries();
  series.ShowEmptyPoints = true;
  series.EmptyPointStyle = EmptyPointStyle.SymbolAndInterior;
}

 

WPF Chart displays Empty Points in Chart Area

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied