Transforming Data
✓ Published1🌍 Public
This example shows the Iris dataset transformed into a summary of average sepal length per species, displayed as formatted JSON text in a `<pre>` element. The visualization fetches and parses `data.csv` using `d3.csvParse`, then applies `d3.flatRollup` and `d3.sum` to compute the species averages. The code also demonstrates a state management pattern with `setState` for handling loading states, rendering the result with D3’s `select` and `join` methods.
AI-generated descriptionMIT Licensed