Skip to main content
100%

12. Scatterplot with Species

✓ Published0🌍 Public
Kktshim@snu.ac.kr
Last edited Nov 9, 2022
Created on Nov 9, 2022

This interactive scatterplot displays the classic Iris flower dataset, encoding measurements like petal and sepal dimensions as points. Using React and SVG, the visualization allows users to dynamically select which quantitative or categorical columns map to the X and Y axes via dropdown menus built with a custom `menu` function. Data is loaded from a remote CSV using `d3.csv`. When axes change, the scatter plot updates smoothly, leveraging D3’s `transition` API to animate circles to new positions over one second. Axis labels and tick marks transition accordingly, with `d3.scaleLinear` and `d3.scalePoint` handling numeric and categorical scales.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes