Xceed Chart for WinForms v4.4 Documentation
Handling empty data points at presentation level

Welcome to Xceed Chart for WinForms v4.4 > User Guide > Data Manipulation > Empty Data Points > Handling empty data points at presentation level

Once a value has been assigned to the empty data point, it can be displayed in a variety of ways. The appearance of the empty data point is controlled by an EmptyDataPointsAppearance object attached to each SeriesBase class. An instance of this class can be obtained with the EmptyDataPointsAppearance property of the SeriesBase class.

VB.NET  
Dim edpAppearance As EmptyDataPointsAppearance = series.EmptyDataPointsAppearance
C#  
EmptyDataPointsAppearance edpAppearance = series.EmptyDataPointsAppearance;

The way in which empty data points are displayed is controlled by the Mode property, which is of type EmptyDataPointsAppearanceMode and can accept the following values (for details, see EmptyDataPointsAppearanceMode Enumeration):

Normal
DifferentAppearance

Marker
 

The following is a description of these modes:

VB.NET  

' display empty data points in series specific manner with red filling and black border

edpAppearance.Mode = EmptyDataPointsAppearanceMode.RegularCustomAppearance

edpAppearance.FillEffect.SetSolidColor(Color.White)

edpAppearance.LineProps.Color = Color.Black

C#  

// display empty data points in series specific manner with red filling and black border
edpAppearance.Mode = EmptyDataPointsAppearanceMode.RegularCustomAppearance; 
edpAppearance.FillEffect.SetSolidColor(Color.White);
edpAppearance.LineProps.Color = Color.Black;

VB.NET  

' display empty data points as markers with shpere shape and red filling

edpAppearance.Mode = EmptyDataPointsAppearanceMode.Marker

edpAppearance.Markers.Style = PointStyle.Sphere

edpAppearance.Markers.FillEffect.SetSolidColor(Color.Red)

C#  

// display empty data points as markers with shpere shape and red filling
edpAppearance.Mode = EmptyDataPointsAppearanceMode.Marker; 
edpAppearance.Markers.Style = PointStyle.Sphere;
edpAppearance.Markers.FillEffect.SetSolidColor(Color.Red);

 

Chart with Empty Data Points

Normal
(displayed as if no empty data points were
detected)
Different Appearance
(red segments connect empty data points)
Marker
(Empty data points displayed as markers.
Note that the blue points represent line
values, which were not connected)

Related Examples

Windows Forms: Series\Data Manipulation\EmptyData Points\EmptyData Points

See Also

SeriesBase | EmptyDataPointsAppearance | Markers