Skip to main content
100%

Transforming Data

✓ Published2🌍 Public
Iindushashi.g@gmail.com
Last edited Jun 12, 2023
Created on Jun 10, 2023
Forked from Transforming Data

This visualization displays the average sepal length for each iris species in the Fisher Iris dataset, computed from the raw measurements in data.csv. The code first parses the CSV with `d3.csvParse`, converts numeric fields, then uses `d3.flatRollup` and `d3.sum` to aggregate the data by species, calculating the mean sepal length per group. The result is rendered as formatted JSON text in a `<pre>` element, with the data loading process managed through a simple state machine and `fetch` to retrieve the CSV file.

AI-generated description
MIT Licensed

Similar vizzes