Skip to main content
100%

Polished Scatter Plot with Menus

✓ Published0🌍 Public
MMorgan Worrell
Last edited Sep 1, 2023
Created on Sep 1, 2023

This example renders the classic Iris dataset as an interactive scatter plot, allowing users to explore relationships between sepal and petal measurements by selecting which attributes appear on the X and Y axes via dropdown menus. Built with React components and rendered as SVG, the visualization uses D3's `scaleLinear` and `extent` functions to compute scales from the data, with axes generated by custom `AxisBottom` and `AxisLeft` components. The plot reads data from a CSV file using D3's `csv` utility, and each point displays a tooltip showing its precise value.

AI-generated description

A program that loads in Iris dataset using D3 utilities, and uses React to render a scatter plot.

MIT Licensed

Similar vizzes