Skip to main content
100%

Transforming Data

✓ Published1🌍 Public
Ssreekarthanda@gmail.com
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Activity 6 Task 4

This example shows the Iris dataset transformed into a summary of average sepal length per species, displayed as formatted JSON text in a `<pre>` element. The visualization fetches and parses `data.csv` using `d3.csvParse`, then applies `d3.flatRollup` and `d3.sum` to compute the species averages. The code also demonstrates a state management pattern with `setState` for handling loading states, rendering the result with D3’s `select` and `join` methods.

AI-generated description
MIT Licensed

Similar vizzes