Skip to content

charton API


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

Function: parseCsv() ​

parseCsv(text, options?): Bar[]

Defined in: packages/core/src/data/adapters.ts:77

Parse time,open,high,low,close[,volume] rows. A header row naming those columns (any order; date or timestamp also name the time) is honoured; otherwise columns are positional. Time may be unix seconds, unix milliseconds or an ISO date. Rows come back sorted by time; invalid rows are skipped and of rows with equal times the last one is kept. onDrop reports both.

Parameters ​

text ​

string

options? ​

CsvOptions = {}

Returns ​

Bar[]