ACT(6) Task4
✓ Published0🌍 Public
This example loads the classic Iris dataset from a CSV file and displays the average sepal length for each species as a formatted text summary. It uses `d3.csvParse` to parse the data, `d3.flatRollup` to group by species, and `d3.sum` to calculate the mean. The visualization renders the result in a `<pre>` element, updating via a state management pattern that fetches and processes the data asynchronously. It demonstrates data loading, transformation, and simple text output using D3 v7.
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