Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Transforming Data

Public visualization

Viewing a saved revision (read-only)

645fa32a94cd4010bd7b5f1ae27660e7

Transforming Data

0 stars0🌍 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.