Skip to main content
100%

Transforming Data

✓ Published0🌍 Public
Ssaikrishnabussa
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from activity 6

This example demonstrates a data transformation pipeline using D3.js v7. It loads the classic Iris dataset from a CSV file, parses it with D3's `csvParse` function, then computes the average sepal length grouped by species using `flatRollup` and `sum`. The resulting summary is displayed as formatted JSON text in a `<pre>` element. It showcases how D3's functional API can be used for data aggregation and transformation, with the visualization updating asynchronously via a state management pattern and local ES6 module imports.

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