Transforming Data
✓ Published0🌍 Public
This example demonstrates data transformation using the Iris dataset, showing how raw CSV data can be processed into derived statistics. A bar chart summarizes the average sepal length for each iris species, calculated using `d3.flatRollup` and `d3.sum` from D3 v7. The visualization loads external data via `fetch`, parses it with `d3.csvParse`, and renders the computed summary as formatted text in a `<pre>` element. It also illustrates VizHub's ES6 module system with imports from both D3 and local files.
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