🌍 Public
Viewing a saved revision (read-only)
c87e0ba5cbb244e9972a8cc0934464ea
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3’s `csv` function, then display each parsed row as a JSON string in a `pre` element. The visualization uses the `d3-rosetta` library’s `unidirectionalDataFlow` and `createStateField` to manage asynchronous loading states. Data comes from the Iris dataset in `data.csv`, with numeric fields converted via a `parseRow` function. While loading or on error, the chart remains empty; once parsed, rows render instantly.
AI-generated description