Transforming Data
✓ Published0🌍 Public
This example demonstrates transforming the classic Iris dataset by computing the average sepal length for each species. The visualization renders a JSON summary of the aggregated results as text. It loads data from a CSV file using `d3.csvParse` and leverages `d3.flatRollup` with `d3.sum` to calculate the averages. Data loading is managed through a state-based render loop, highlighting VizHub's reusable ES6 module pattern with `import` statements from 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