Series.EmptyPointStyle Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the drawing style of points marked as empty.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public DataPointCustomProperties EmptyPointStyle { get; set; }

The EmptyPointStyle property determines the drawing style of points marked as empty, for example, in the border color, in the marker images, background color or images, and so forth.

Certain properties are only applicable for specific chart types. For example, the P:System.Web.UI.DataVisualization.Charting.Series.BackImage property does not apply to line charts, but does apply to an area chart.

To display an image that indicates an empty point, use the P:System.Web.UI.DataVisualization.Charting.Series.MarkerImage and P:System.Web.UI.DataVisualization.Charting.Series.MarkerStyle properties, and not the P:System.Web.UI.DataVisualization.Charting.Series.BackImage property.

The AxisLabel property determines the axis label for empty points. Note that for stacked chart types, the axis label is determined by the AxisLabel property of the first plotted series that has this property set.

Data points can be manually marked as an empty by setting the IsEmpty property to true. Alternatively, one of the InsertEmptyPoints methods in the DataManipulator class can be used to check for missing data and insert empty points if a data point is missing.


In the case of line-type charts, the line color for lines that connect to an empty point is determined by the Color property setting.

.NET Framework
Available since 4.0
Return to top