Skip to content

charton API


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

Function: toCSV() ​

toCSV(data, options?): string

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

CSV text with a header row; null and non-finite cells are left empty. Numeric cells are written as numbers, so negative values are not prefixed. The first column is the time, written as options.time says. Throws a RangeError for an unknown timezone.

Parameters ​

data ​

DataTable

options? ​

CsvExportOptions = {}

Returns ​

string