Example:
$workbook = new cells\Workbook(); $charts = $workbook->getWorksheets()->get(0)->getCharts();
| Property Getters/Setters Summary | ||
|---|---|---|
| function | getCount() | |
| function | get(index) | |
| 
             Gets the  | ||
| function | get(name) | |
| 
            Gets the chart by the name.
             | ||
| Method Summary | ||
|---|---|---|
| function | add(data, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn) | |
| 
            Adds a chart with preset template.
             | ||
| function | add(type, upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn) | |
| 
            Adds a chart to the collection.
             | ||
| function | add(type, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn) | |
| 
            Adds a chart to the collection.
             | ||
| function | add(type, dataRange, topRow, leftColumn, rightRow, bottomColumn) | |
| 
            Adds a chart to the collection.
             | ||
| function | add(value) | |
| Reserved for internal use. | ||
| function | addFloatingChart(type, left, top, width, height) | |
| 
            Adds a chart to the collection.
             | ||
| function | clear() | |
| 
            Clear all charts.
             | ||
| function | contains(value) | |
| Reserved for internal use. | ||
| function | get(index) | |
| Reserved for internal use. | ||
| function | indexOf(value) | |
| Reserved for internal use. | ||
| function | iterator() | |
| function | remove(chart) | |
| 
            Remove the specific chart.
             | ||
| function | removeAt(index) | |
| 
            Remove a chart at the specific index.
             | ||
function getCount()
function get(index)
index - The zero based index of the element.function get(name)
name -  The chart name.function addFloatingChart(type, left, top, width, height)
function add(type, upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn)
type: Number - A upperLeftRow: Number - Upper left row index.upperLeftColumn: Number - Upper left column index.lowerRightRow: Number - Lower right row indexlowerRightColumn: Number - Lower right column indexfunction add(type, dataRange, topRow, leftColumn, rightRow, bottomColumn)
type: Number - A dataRange: String - Specifies the data range of the charttopRow: Number - Upper left row index.leftColumn: Number - Upper left column index.rightRow: Number - Lower right row indexbottomColumn: Number - Lower right column indexfunction 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: Number - Upper left row index.leftColumn: Number - Upper left column index.rightRow: Number - Lower right row indexbottomColumn: Number - Lower right column indexfunction add(type, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn)
type: Number - 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: Number - Upper left row index.leftColumn: Number - Upper left column index.rightRow: Number - Lower right row indexbottomColumn: Number - Lower right column indexfunction remove(chart)
chart: Chart - function removeAt(index)
index: Number - The chart index.function clear()
function iterator()
function get(index)
function contains(value)
function add(value)
function indexOf(value)