Skip to main content
Public

Share visualization

Loading preview…

Transforming Data

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Transforming Data

2
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

Comments

Sign in to join the discussion.

MIT Licensed