Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Transforming Data 1

Public visualization

Viewing a saved revision (read-only)

f2afff539c8a43ccb4b5dcb44efc7475

Fork of Transforming Data 1

0 stars1🌍 Public
BBhavanaGIrni
Last edited Jul 3, 2023
Created on Jul 3, 2023
Forked from Transforming Data

This example displays a text-based summary of the Iris dataset, showing the average sepal length for each of the three species. Using D3 v7’s `flatRollup` and `sum` functions, it computes the mean values and renders them as JSON in a `<pre>` element. The data is loaded asynchronously via `fetch` and parsed with `csvParse`, with numeric fields coerced to numbers before aggregation. The visualization updates through a state management pattern where `setState` triggers a re-render.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.