Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Transforming Data

Public visualization

Viewing a saved revision (read-only)

b41a50d788674510a111a1f555ebb974

Transforming Data

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

This example showcases the capabilities of VizHub by loading D3 via UNPKG and using ES6 modules. It demonstrates data transformation with D3's `csvParse`, `flatRollup`, and `sum` functions on the classic Iris dataset. The visualization aggregates the data by species, calculating the average sepal length for each, and renders the resulting summary as formatted JSON text in a `pre` element. The code illustrates a pattern for fetching and parsing local CSV data asynchronously.

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.