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 descriptionMIT Licensed
Comments
Sign in to join the discussion.