ChartCategoryCollection class

ChartCategoryCollection class

Represents collection of ChartCategory

The ChartCategoryCollection type exposes the following members:

Properties

PropertyDescription
use_cellsIf true then worksheet is used for storing categories (this case supports a multi-level categories).
If false then worksheet is NOT used for storing values (and this case doesn’t support a
multi-level categories).
Read/write bool.
grouping_level_countReturns count of category grouping levels used.
Is more then one for multilevel categories.
Read-only int.

Gets the element at the specified index.

Indexer

NameDescription
[index]

Methods

MethodDescription
add(self, chart_data_cell)If category exists in collection, return it. Else creates new chart category from
IChartDataCell and adds it to the collection.
add(self, value)Creates new ChartCategory from value and adds it to the collection.
index_of(self, value)Searches for the specified ChartCategory and returns the zero-based index of the first occurrence within the entire Collection.
remove(self, value)Removes the specified value.
remove_at(self, index)Removes the element at the given index.
clear(self)Removes all elements from the collection.

See Also