Delete every series and categories and reset all the parameters of a chart (including title, subtitle, etc.).

    void object.ClearAll( )

#### Arguments

object
  Required. A Chart object.

#### Remarks

The ClearAll method deletes all the series added to a chart, including XY series. The method also deletes the categories and resets all the parameters of a chart to their respective default value.

#### JSP Code Sample

The following JSP code illustrates use of the ClearAll method.

    // Delete all the series and categories of the chart
    chart.ClearAll();

    int n_series= chart.GetSeriesCount();
    int n_categories= chart.GetValuesCount();
    String title= chart.GetTitle();
    String subtitle= chart.GetSubtitle();

    // n_series and n_categories are both equal to 0
    out.println( "number of series=" + n_series + " number of categories=" + n_categories + "<br>");

    // title and subtitle are both empty strings
    out.println( " Title=" + title + " Subtitle=" + subtitle + "<br>");

#### See Also

GetSeriesCount Method | SetSeriesValuesFromString Method | SetSeriesValuesFromArray Method | GetSeriesValue Method

Applies To: Chart Object