d3_dsv library

Native, statically typed d3-dsv.

Classes

DsvBool
A lowercase true or false cell.
DsvDate
An ISO date; null represents an upstream invalid Date.
DsvFormat
Native parser and formatter corresponding to the object in dsv.js:155-163.
DsvNull
An empty or whitespace-only cell.
DsvNumber
A numeric cell, including NaN and infinities.
DsvParsedTable<T>
Parsed rows with their original column order, from dsv.js:64-71.
DsvString
Text which did not match another type; whitespace is preserved.
DsvValue
A statically typed automatically inferred cell, from autoType.js:1-20.

Constants

d3DsvVersion → const String
The upstream d3-dsv release.

Functions

autoType(DsvRow row) → Map<String, DsvValue>
Infers cell values without mutating the string row, autoType.js:1.
csvFormat(Iterable<Map<String, Object?>> rows, [List<String>? columns]) → String
csvFormat: the CSV form of DsvFormat.format.
csvFormatBody(Iterable<Map<String, Object?>> rows, [List<String>? columns]) → String
csvFormatBody: the CSV form of DsvFormat.formatBody.
csvFormatRow(Iterable<Object?> row) → String
csvFormatRow: the CSV form of DsvFormat.formatRow.
csvFormatRows(Iterable<Iterable<Object?>> rows) → String
csvFormatRows: the CSV form of DsvFormat.formatRows.
csvFormatValue(Object? value) → String
csvFormatValue: the CSV form of DsvFormat.formatValue.
csvParse(String text) → DsvParsedTable<DsvRow>
csvParse: the CSV form of DsvFormat.parse.
csvParseAs<T>(String text, T? convert(DsvRow row, int index, List<String> columns)) → DsvParsedTable<T>
csvParseAs: the CSV form of DsvFormat.parseAs.
csvParseRows(String text) → List<List<String>>
csvParseRows: the CSV form of DsvFormat.parseRows.
csvParseRowsAs<T>(String text, T? convert(List<String> row, int index)) → List<T>
csvParseRowsAs: the CSV form of DsvFormat.parseRowsAs.
dsvFormat(String delimiter) → DsvFormat
Creates the delimiter-specific parser/formatter, from dsv.js:60.
tsvFormat(Iterable<Map<String, Object?>> rows, [List<String>? columns]) → String
tsvFormat: the TSV form of DsvFormat.format.
tsvFormatBody(Iterable<Map<String, Object?>> rows, [List<String>? columns]) → String
tsvFormatBody: the TSV form of DsvFormat.formatBody.
tsvFormatRow(Iterable<Object?> row) → String
tsvFormatRow: the TSV form of DsvFormat.formatRow.
tsvFormatRows(Iterable<Iterable<Object?>> rows) → String
tsvFormatRows: the TSV form of DsvFormat.formatRows.
tsvFormatValue(Object? value) → String
tsvFormatValue: the TSV form of DsvFormat.formatValue.
tsvParse(String text) → DsvParsedTable<DsvRow>
tsvParse: the TSV form of DsvFormat.parse.
tsvParseAs<T>(String text, T? convert(DsvRow row, int index, List<String> columns)) → DsvParsedTable<T>
tsvParseAs: the TSV form of DsvFormat.parseAs.
tsvParseRows(String text) → List<List<String>>
tsvParseRows: the TSV form of DsvFormat.parseRows.
tsvParseRowsAs<T>(String text, T? convert(List<String> row, int index)) → List<T>
tsvParseRowsAs: the TSV form of DsvFormat.parseRowsAs.

Typedefs

DsvRow = Map<String, String>
A raw row of string cells, from dsv.js:7-11.