Skip to main content
100%

Transforming Data

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

A data-transformation example reads the classic Iris dataset from a CSV and computes the average sepal length per species using D3’s `flatRollup` and `sum` APIs. The result is rendered as a formatted JSON summary displayed inside a `<pre>` element, demonstrating the library’s data-wrangling capabilities. The code highlights loading D3 via UNPKG and the use of local ES6 modules alongside a state-management pattern for asynchronous data fetching.

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