Example:
workbook = Workbook() charts = workbook.getWorksheets().get(0).getCharts()
Property Getters/Setters Summary | ||
---|---|---|
method | getCount() | |
method | get(index) | |
Gets the |
||
method | get(name) | |
Gets the chart by the name.
|
Method Summary | ||
---|---|---|
method | add(data, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn) | |
Adds a chart with preset template.
|
||
method | add(type, upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn) | |
Adds a chart to the collection.
|
||
method | add(type, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn) | |
Adds a chart to the collection.
|
||
method | add(type, dataRange, topRow, leftColumn, rightRow, bottomColumn) | |
Adds a chart to the collection.
|
||
method | add(value) | |
Reserved for internal use. |
||
method | addFloatingChart(type, left, top, width, height) | |
Adds a chart to the collection.
|
||
method | clear() | |
Clear all charts.
|
||
method | contains(value) | |
Reserved for internal use. |
||
method | get(index) | |
Reserved for internal use. |
||
method | indexOf(value) | |
Reserved for internal use. |
||
method | iterator() | |
method | remove(chart) | |
Remove the specific chart.
|
||
method | removeAt(index) | |
Remove a chart at the specific index.
|
int getCount()
Chart get(index)
index
- The zero based index of the element.Chart get(name)
name
- The chart name.int addFloatingChart(type, left, top, width, height)
int add(type, upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn)
int add(type, dataRange, topRow, leftColumn, rightRow, bottomColumn)
type: int
- A dataRange: String
- Specifies the data range of the charttopRow: int
- Upper left row index.leftColumn: int
- Upper left column index.rightRow: int
- Lower right row indexbottomColumn: int
- Lower right column indexint add(data, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn)
data: byte[]
- The data of chart template file(.crtx).
dataRange: String
- Specifies the data range of the chartisVertical: boolean
- Specifies whether to plot the series from a range of cell values by row or by column.topRow: int
- Upper left row index.leftColumn: int
- Upper left column index.rightRow: int
- Lower right row indexbottomColumn: int
- Lower right column indexint add(type, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn)
type: int
- A dataRange: String
- Specifies the data range of the chartisVertical: boolean
- Specifies whether to plot the series from a range of cell values by row or by column.topRow: int
- Upper left row index.leftColumn: int
- Upper left column index.rightRow: int
- Lower right row indexbottomColumn: int
- Lower right column indexremove(chart)
chart: Chart
- removeAt(index)
index: int
- The chart index.clear()
Iterator iterator()
Object get(index)
boolean contains(value)
int add(value)
int indexOf(value)