Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of A6_ Transformingdata

Public visualization

Viewing a saved revision (read-only)

fa6c9cf5002244cc898133e0cbbd77e7

Fork of A6_ Transformingdata

0 stars0🌍 Public
Cchsaisriharsha@gmail.com
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This example loads the Iris flower dataset from a CSV file and uses D3’s `flatRollup` and `sum` functions to compute the average sepal length for each species, displaying the result as JSON text. The visualization shows the transformed summary data in a `<pre>` element, demonstrating how to fetch, parse with `csvParse`, and aggregate data using D3 v7 within a VizHub project. It also illustrates ES6 module imports and state management through a custom `setState` pattern.

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.