Skip to main content
100%

Transforming Data

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

This example demonstrates a data transformation pipeline using the classic Iris dataset. It loads the CSV file containing sepal and petal measurements for three flower species, then uses `d3.csvParse` to parse the data and converts the numeric columns to numbers. The visualization calculates the average sepal length per species using `d3.flatRollup` and `d3.sum`, and displays the resulting summary as JSON text in a `<pre>` element. The code uses D3 v7's selection methods (`select`, `selectAll`, `join`) to manage the output.

AI-generated description
MIT Licensed

Similar vizzes