Transforming Data
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed