Skip to main content
100%

Transforming Data

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

This example demonstrates the power of D3’s data transformation APIs by loading the classic Iris dataset from a local CSV. Using `d3.flatRollup` and `d3.sum`, it groups the records by species to compute the average sepal length, then renders the aggregated results as JSON text in a `<pre>` element. The visualization also highlights asynchronous data loading with `fetch` and `d3.csvParse`, alongside ES6 module imports. The output is a clear, tabular summary of the transformed data, showcasing D3 v7’s streamlining of grouping and aggregation workflows.

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