Fork of Hello VizHub
✓ Published0🌍 Public
This example displays the average sepal length for each iris species in the classic Iris dataset. It reads the CSV file using `fetch` and parses it with `d3.csvParse`, then summarizes the data using `d3.flatRollup` and `d3.sum`. The resulting calculated averages are rendered as a JSON object inside a `<pre>` element via `d3.select` and `selection.join`. The visualization demonstrates loading D3 from UNPKG, importing from local ES6 modules, and managing asynchronous data loading through a state-based render cycle.
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