Skip to main content
Parse CSV strings into the Data structure expected by @graphysdk/core.

fromCSV

Signature

Options

hasHeader
boolean
default:"true"
Whether the first row contains column headers. When false, columns are auto-named Column 1, Column 2, etc.
locale
VizLocale
default:"EN_US"
Locale for number parsing. Determines thousand/decimal separator conventions. For example, 'PT_PT' treats 1.000,50 as 1000.5.
maxFileSize
number
default:"5"
Maximum allowed input size in megabytes. Throws an error if the input exceeds this limit.

Examples

Without Headers

European Number Format (semicolon-delimited)

The CSV delimiter is auto-detected (comma, semicolon, pipe, etc.). For tab-separated data, you can also use fromTSV.