Skip to main content
100%

Activity6_2

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

This example demonstrates how to load and summarize the classic Iris dataset using D3 v7 within VizHub. It fetches `data.csv` asynchronously, parses it with `d3.csvParse`, and converts numeric columns to numbers. The visualization then uses `d3.flatRollup` and `d3.sum` to compute the average sepal length per species, displaying the resulting summary as formatted JSON text in a `pre` element. The file also includes local ES6 modules and a custom state management pattern to handle loading and rendering.

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