Skip to main content
100%

Activity6_4_Transforming the Data

✓ Published0🌍 Public
MmNamratha25
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from Hello VizHub

This example demonstrates how to transform the Iris flower dataset by computing the average sepal length for each species using D3's `flatRollup` and `sum` functions. The resulting summary is displayed as a JSON-formatted text block via `select`, `data`, and `join`. The visualization loads CSV data with `csvParse`, coerces numeric fields, and uses local ES6 modules alongside D3 v7 loaded from 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