Series.EmptyPointStyle 属性


获取或设置标记为空的点的绘制样式。Gets or sets the drawing style of points marked as empty.

 property System::Web::UI::DataVisualization::Charting::DataPointCustomProperties ^ EmptyPointStyle { System::Web::UI::DataVisualization::Charting::DataPointCustomProperties ^ get(); void set(System::Web::UI::DataVisualization::Charting::DataPointCustomProperties ^ value); };
public System.Web.UI.DataVisualization.Charting.DataPointCustomProperties EmptyPointStyle { get; set; }
member this.EmptyPointStyle : System.Web.UI.DataVisualization.Charting.DataPointCustomProperties with get, set
Public Property EmptyPointStyle As DataPointCustomProperties




EmptyPointStyle属性确定标记为空的点的绘制样式, 例如, 边框颜色、标记图像、背景色或图像等。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. 例如, BackImage属性不适用于折线图, 但也适用于面积图。For example, the BackImage property does not apply to line charts, but does apply to an area chart.

若要显示指示空点的图像, 请使用MarkerImageMarkerStyle BackImage属性, 而不是属性。To display an image that indicates an empty point, use the MarkerImage and MarkerStyle properties, and not the BackImage property.

AxisLabel属性确定空点的轴标签。The AxisLabel property determines the axis label for empty points. 请注意, 对于堆积图类型, 轴标签由设置了此AxisLabel属性的第一个绘制序列的属性确定。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.

通过将IsEmpty属性设置为, true可以将数据点手动标记为空。Data points can be manually marked as an empty by setting the IsEmpty property to true. 或者, 可以使用InsertEmptyPoints DataManipulator类中的方法之一来检查缺失数据, 并在数据点丢失时插入空点。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.


对于线条类型图表, 连接到空点的线条的线条颜色由Color属性设置确定。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.