Skip to main content
Parse a text string (CSV or TSV) into the Data structure expected by @graphysdk/core.

fromText

Signature

Options

format
TextFileFormat
required
The text format: 'csv' or 'tsv'.
options.hasHeader
boolean
default:"true"
Whether the first row contains column headers. When false, columns are auto-named Column 1, Column 2, etc.
options.locale
VizLocale
default:"EN_US"
Locale for number parsing. Determines thousand/decimal separator conventions.
options.maxFileSize
number
default:"5"
Maximum allowed input size in megabytes.

Examples

Parse CSV from memory

Handle a browser text file upload