add method
add
If category exists in collection, return it. Else creates new chart category from
IChartDataCell
and adds it to the collection.
Returns
Added or existing category.
def add(self, chart_data_cell):
...
Parameter | Type | Description |
---|---|---|
chart_data_cell | IChartDataCell | Cell used to create chart category. |
add
Creates new IChartCategory
from value and adds it to the collection.
Returns
Added IChartCategory
.
def add(self, value):
...
Parameter | Type | Description |
---|---|---|
value | any | The value. |
Remarks
This method adds worksheet with name AUTO_DATA and adds all values there. If you use IChartDataWorkbook
to add or edit cell values, be sure that you do not use this worksheet
Maximum number of values added using this method must not exceed 16711680
Exceptions
Exception | Description |
---|---|
RuntimeError(Proxy error(InvalidOperationException)) | if limit exceeded |
See Also
- class
IChartCategory
- class
IChartCategoryCollection
- class
IChartDataCell
- class
IChartDataWorkbook
- module
aspose.slides.charts
- library
Aspose.Slides