Transforming Data
✓ Published0🌍 Public
A data-transformation example reads the classic Iris dataset from a CSV and computes the average sepal length per species using D3’s `flatRollup` and `sum` APIs. The result is rendered as a formatted JSON summary displayed inside a `<pre>` element, demonstrating the library’s data-wrangling capabilities. The code highlights loading D3 via UNPKG and the use of local ES6 modules alongside a state-management pattern for asynchronous data fetching.
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