Skip to main content
100%

Scatter Plot with Menus Including Species - TN

✓ Published0🌍 Public
TToly
Last edited Dec 31, 2022
Created on Dec 31, 2022

This interactive scatter plot displays the Iris dataset, allowing users to explore relationships between sepal and petal measurements through two dropdown menus that assign either quantitative or categorical variables to the x- and y-axes. The visualization uses D3 v6’s selection.join to smoothly transition data-driven circle positions and scales, with axes updating via d3.axisLeft and d3.axisBottom. The code employs d3.scaleLinear and d3.scalePoint for continuous and categorical mappings, respectively, and animates circle growth on entry using d3.transition with a one-second duration.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes