Example:
excel = Workbook() chartIndex = excel.getWorksheets().get(0).getCharts().add(ChartType.COLUMN, 3, 3, 15, 10) chart = excel.getWorksheets().get(0).getCharts().get(chartIndex) chart.getNSeries().add("A1:a3", True) chart.getNSeries().get(0).getTrendLines().add(TrendlineType.LINEAR, "MyTrendLine") line = chart.getNSeries().get(0).getTrendLines().get(0) line.setDisplayEquation(True) line.setDisplayRSquared(True) line.setColor(Color.getRed())
Property Getters/Setters Summary | ||
---|---|---|
method | getCount() | |
method | get(index) | |
Gets a |
Method Summary | ||
---|---|---|
method | add(type) | |
Adds a |
||
method | add(type, name) | |
Adds a |
||
method | add(value) | |
Reserved for internal use. |
||
method | clear() | |
method | contains(value) | |
Reserved for internal use. |
||
method | get(index) | |
Reserved for internal use. |
||
method | indexOf(value) | |
Reserved for internal use. |
||
method | iterator() | |
method | removeAt(index) | |
int add(type)
type: int
- A int add(type, name)
type: int
- A name: String
- Trendline name.clear()
removeAt(index)
Iterator iterator()
Object get(index)
boolean contains(value)
int add(value)
int indexOf(value)