Skip to content

charton API


charton API / @chart-on/ui / index / DownloadDataPresetOptions

Interface: DownloadDataPresetOptions ​

Defined in: ui/src/toolbar-presets.ts:352

Options for the downloadData preset: the file name, the time column format and the range of rows exported.

Properties ​

filename? ​

optional filename?: string | ((chart) => string)

Defined in: ui/src/toolbar-presets.ts:354

File name; a function gets the chart. Default chart.csv.


range? ​

optional range?: object

Defined in: ui/src/toolbar-presets.ts:358

Rows to export. Default the visible range (see chart.getDataTable).

from ​

from: number

to ​

to: number


time? ​

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

Defined in: ui/src/toolbar-presets.ts:356

Time column format (see toCSV). Default 'iso', in the chart timezone (chart.zone).