Transforming Data
✓ Published0🌍 Public
This example demonstrates a data transformation pipeline using D3.js v7. It loads the classic Iris dataset from a CSV file, parses it with D3's `csvParse` function, then computes the average sepal length grouped by species using `flatRollup` and `sum`. The resulting summary is displayed as formatted JSON text in a `<pre>` element. It showcases how D3's functional API can be used for data aggregation and transformation, with the visualization updating asynchronously via a state management pattern and local ES6 module imports.
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