Activity6_2
✓ Published0🌍 Public
This example demonstrates how to load and summarize the classic Iris dataset using D3 v7 within VizHub. It fetches `data.csv` asynchronously, parses it with `d3.csvParse`, and converts numeric columns to numbers. The visualization then uses `d3.flatRollup` and `d3.sum` to compute the average sepal length per species, displaying the resulting summary as formatted JSON text in a `pre` element. The file also includes local ES6 modules and a custom state management pattern to handle loading and rendering.
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