Skip to main content
100%

Transforming Data

✓ Published0🌍 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.
MIT Licensed

Similar vizzes