D3 provides tools to load files—using Ajax requests—and parse popular data formats. This section explores the microlibraries that contain these tools: d3-format and d3-fetch. They are both part of the default bundle.
Loading and parsing data
Using delimiter-separated values
Delimiter-Separated Values (DSV) is a popular flat, tabular data format that organizes data in rows and columns, separating rows with newlines and data values with a delimiter. Comma-Separated Values (CSV) is probably the most popular DSV format. D3 applications can use the methods in the d3-dsv module (listed here) to parse DSV data structures with any delimiter:
Function or method |
Description |
d3.dsvFormat(delimiter) |
This returns... |