Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Polished Scatter Plot with Menus

Public visualization

Fork of Polished Scatter Plot with Menus

0 stars0🌍 Public
CCheng Tang
Last edited Oct 31, 2022
Created on Oct 30, 2022

This interactive scatter plot displays the Iris dataset, with menus that let the user select which attributes map to the X and Y axes, dynamically updating the visualization. The plot renders 150 circles as SVG marks, using D3’s `scaleLinear` for axis scaling and `extent` for domain calculation, while React manages state for the chosen attributes. Axis ticks are generated by D3’s scale `ticks` method, and tooltips appear via SVG `<title>` elements. The data is loaded asynchronously with D3’s `csv` function from a GitHub-hosted CSV file.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed