Transforming Data
✓ Published0🌍 Public
The visualization transforms tabular CSV data into aggregated summary statistics, displaying average sepal length per species as formatted JSON text. It loads the classic Iris dataset via `d3.csvParse`, converts measurement columns to numbers, and computes group-wise means using `d3.flatRollup` and `d3.sum`. The result renders inside a `<pre>` element, which is updated through a state-driven render cycle managed by the example’s `render` and `setState` functions. The code demonstrates importing local ES6 modules and the D3 library loaded via 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