Skip to main content
100%

Transforming Data

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This example demonstrates data transformation using the Iris dataset, showing how raw CSV data can be processed into derived statistics. A bar chart summarizes the average sepal length for each iris species, calculated using `d3.flatRollup` and `d3.sum` from D3 v7. The visualization loads external data via `fetch`, parses it with `d3.csvParse`, and renders the computed summary as formatted text in a `<pre>` element. It also illustrates VizHub's ES6 module system with imports from both D3 and local files.

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