Skip to main content
100%

Transforming Data

✓ Published0🌍 Public
Mmandadi1999
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

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 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