klyn.io.xlsx.Workbook.addChart
method
public addChart(options as Map<String, Object>) as Chart:
Description

Creates a chart owned by this workbook.

Parameters
  • options Chart options such as `{"type": "line"}`.
Returns

New chart.

Example
chart = workbook.addChart({"type": "line"})
chart.addSeries({"values": "=Data!$A$1:$A$6"})