You are here: Section Rules Reference > Section Rules Summary > PurgeChartSeries

PurgeChartSeries

Use this section level rule to remove a series from a chart which contains no series data. The cleanup performed by this rule affects all charts on the section. If a series is defined for a chart, but there is no data to fill that series, in most cases you would not want to include the empty series in the chart.

A series may exist but contain no series data because you may need to add series data on an as provided basis. For instance, the customer extract data may contain a variable number of records containing data that goes into a chart. Each of these records may contain data for a single series.

The FAP file would be designed to accommodate the maximum number of series that could be included. If the extract data does not contain records to build the maximum number of series the chart can accommodate, you may want to exclude those series from the chart. This eliminates white space on the chart.

Syntax

PurgeChartSeries ( )

You typically use this rule with the CreateChartSeries or FieldVarsToChartSeries rules. Always place this rule after any rule which gathers chart data.

See also