Activity 6 - Transforming Data
✓ Published0🌍 Public
This example demonstrates data transformation by loading the Iris flower dataset from a CSV file and computing the average sepal length for each species. The visualization displays the results as a formatted JSON summary, using a minimal text-based output. The code leverages D3 v7 functions including `csvParse` to parse the data, `flatRollup` and `aggregate` to group records and calculate sums, and `select` for DOM manipulation. This highlights how D3 can transform raw tabular data into structured summaries.
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