Fork of Data transformation
✓ Published1🌍 Public
This example demonstrates the loading and parsing of the Iris Dataset from a CSV file, displaying the raw tabular data as formatted JSON text. The visualization initially shows a "LOADING" state before fetching the CSV, then uses `d3.csvParse` to convert the text into an array of objects, explicitly coercing the four measurement columns to numbers. The rendering is handled by a simple D3 data join that updates a `<pre>` element with the parsed data, driven by a state management pattern where `setState` triggers re-rendering. The Iris Dataset contains 150 samples of sepal and petal measurements across three iris species.
AI-generated descriptionLoading a CSV file, the Iris Dataset.
MIT Licensed