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?
optionalfilename?:string| ((chart) =>string)
Defined in: ui/src/toolbar-presets.ts:354
File name; a function gets the chart. Default chart.csv.
range?
optionalrange?: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?
optionaltime?:"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).