Transforming Data
✓ Published1🌍 Public
This example loads the Iris flower dataset from a CSV file and computes the average sepal length for each species using `d3.flatRollup` and `d3.sum`. The result is displayed as a JSON-formatted text summary on the page. D3’s `csvParse` handles data loading, and numeric fields are explicitly converted to numbers. The visualization updates through React-style state management, with a loading placeholder shown before the fetch completes.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed