Skip to main content
100%

Transforming data

✓ Published0🌍 Public
Aaniteshterala2000
Last edited Jun 25, 2023
Created on Jun 25, 2023
Forked from Hello VizHub

This example demonstrates data transformation by loading the classic Iris dataset from a CSV file and computing the average sepal length for each species. It uses D3 v7 modules such as `csvParse`, `flatRollup`, and `sum` to parse the data, aggregate it by species, and display the resulting summary as JSON in a `<pre>` element. The visualization also shows asynchronous state management with `setState` and a loading indicator.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes