Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Transforming Data

Public visualization

Transforming Data

0 stars0🌍 Public
Ssuryavamsi00024
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This example displays summary statistics from the classic Iris flower dataset. After loading the data with `d3.csvParse`, it computes the average sepal length for each species using `d3.flatRollup` and `d3.sum`, then renders the resulting JSON object as text in a `<pre>` element via a D3 data join. The visualization demonstrates importing D3 modules locally, fetching data with `fetch`, and managing asynchronous state updates through a simple state management pattern. It also showcases loading D3 v7 from UNPKG and composing modular ES6 JavaScript 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.

Comments

Sign in to join the discussion.

MIT Licensed