ChartCollection
Overview
ChartCollection is a class in Aspose.Cells FOSS for Java.
Collection of embedded charts on a worksheet.
This class provides 5 methods for working with ChartCollection objects in Java.
Available methods include: add, chartTypeToString, get, getCount, parseChartType.
All public members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package.
Properties: count.
Description
ChartCollection is a class in the Aspose.Cells FOSS library for Java that exposes 5 methods and 1 property for programmatic use.
The class also provides the count property (gets the count).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the count. |
Methods
| Signature | Description |
|---|---|
getCount() → int | Returns the count. |
get(index: int) → Chart | Returns the chart at the given index. |
add(type: ChartType, dataRange: String, upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int) → int | Adds a new chart of the given type with the specified data range and anchor. |
parseChartType(raw: String) → ChartType | Parses a raw string and returns the corresponding ChartType. |
chartTypeToString(type: ChartType) → String | Returns the string representation of the given ChartType. |