2D Chart for WinForms | ComponentOne
Charting Data / Customizing the ChartDataSeries / Showing, Excluding, or Hiding a Series
In This Topic
    Showing, Excluding, or Hiding a Series
    In This Topic

    Suppose there were hundreds of series that needed to be displayed in the chart. Since the chart can only be so large, the displayed series must be managed. The Display property of the ChartDataSeries provides this capability. The Display property accepts a SeriesDisplayEnum enumerated type. Setting this property to its different values allows a series to show, be hidden, or be excluded:

    Value Description
    SeriesDisplayEnum.Show The series is displayed in the ChartArea. This is the default setting.
    SeriesDisplayEnum.Hide The series is not displayed in the ChartArea, but the ChartArea (Max and Min) is not altered to account for the lost series.
    SeriesDisplayEnum.Exclude The series is not displayed in the ChartArea, but the ChartArea is altered to account for the lost series.
    SeriesDisplayEnum.ExcludeHoles The series is displayed, but the Data Hole values are ignored.

    See Also