Transforming Data
✓ Published0🌍 Public
This example showcases the capabilities of VizHub by loading D3 via UNPKG and using ES6 modules. It demonstrates data transformation with D3's `csvParse`, `flatRollup`, and `sum` functions on the classic Iris dataset. The visualization aggregates the data by species, calculating the average sepal length for each, and renders the resulting summary as formatted JSON text in a `pre` element. The code illustrates a pattern for fetching and parsing local CSV data asynchronously.
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