Transforming data
✓ Published0🌍 Public
This example demonstrates data transformation by loading the classic Iris dataset from a CSV file and computing the average sepal length for each species. It uses D3 v7 modules such as `csvParse`, `flatRollup`, and `sum` to parse the data, aggregate it by species, and display the resulting summary as JSON in a `<pre>` element. The visualization also shows asynchronous state management with `setState` and a loading indicator.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed