🌍 Public
Activity6_4_Transforming the Data
This example demonstrates how to transform the Iris flower dataset by computing the average sepal length for each species using D3's `flatRollup` and `sum` functions. The resulting summary is displayed as a JSON-formatted text block via `select`, `data`, and `join`. The visualization loads CSV data with `csvParse`, coerces numeric fields, and uses local ES6 modules alongside D3 v7 loaded from UNPKG.
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








Comments
Sign in to join the discussion.