🌍 Public
Viewing a saved revision (read-only)
9ab57820c994481ea8fc5626442d22f0
Transforming Data
This example demonstrates data transformation by loading the classic Iris dataset from a CSV file, converting string values to numbers, and computing the average sepal length for each Iris species using the `flatRollup` and `sum` functions from D3 v7. The resulting summary is rendered as a JSON string inside a `pre` element. The visualization also showcases ES6 module imports and asynchronous state management through the `setState` callback pattern.
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.