Skip to content

charton API


charton API / @chart-on/core / index / CsvExportOptions

Interface: CsvExportOptions ​

Defined in: packages/core/src/export.ts:109

How toCSV writes the first (time) column.

Properties ​

time? ​

optional time?: "unix" | "iso" | ((time) => string)

Defined in: packages/core/src/export.ts:115

'unix' (default): unix seconds. 'iso': the wall-clock date and time in timezone as YYYY-MM-DD HH:mm:ss, which spreadsheets read as a date. A function returns the text itself; it is escaped like any text cell.


timezone? ​

optional timezone?: string

Defined in: packages/core/src/export.ts:117

IANA timezone, or 'local', for time: 'iso'. Default 'UTC'.