# Empty Values

## Content



By default, if there is a hole(double.NaN) in data values chart just skips the value and draws line to next valid data point.

To change this behavior and show the gaps at the hole values, set [Display](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.DataSeries.Display.html) = ShowNaNGap.

For example, the following XAML code includes specified holes in the **DataSeries**:

```xml
<c1chart:C1Chart  Name="c1Chart1" ChartType="Line">
     <c1chart:C1Chart.Data>
       <c1chart:ChartData>
         <c1chart:DataSeries Values="20 22 NaN 24 15 NaN 27 26"
           ConnectionStrokeThickness="3" />
       </c1chart:ChartData>
     </c1chart:C1Chart.Data>
   </c1chart:C1Chart>
```

The chart appears similar to the following without the **Display** property set:

![](https://cdn.mescius.io/document-site-files/images/9e1b6c55-78c5-4648-896a-23e777db9f27/images/graphics/defaultlinechart.png)

To show a gap between the chart lines in a **Line** chart you can set the **Display** property to ShowNaNGap like the following:

```vbnet
Me.C1Chart1.Data.Children(1).Display = C1.WPF.C1Chart.SeriesDisplay.ShowNaNGap
```

```csharp
this.C1Chart1.Data.Children[1].Display = C1.WPF.C1Chart.SeriesDisplay.ShowNaNGap;
```

The line chart will display a gap between the chart lines, similar to the following:

![](https://cdn.mescius.io/document-site-files/images/9e1b6c55-78c5-4648-896a-23e777db9f27/images/graphics/display=shownangap.png)

## See Also

[Grouping Aggregation](/componentone/docs/wpf/online-chart/overview/ChartFeatures/GroupingAggregation)