Skip to main content
100%

Polished Scatter Plot with Menus

✓ Published0🌍 Public
Wwenleicao
Last edited Sep 28, 2019
Created on Sep 28, 2019

This example shows an interactive scatter plot of the Iris dataset, with dropdown menus allowing the user to select which attributes appear on the x and y axes. The visualization uses React for component management and state, while D3 v5 provides scales and the CSV data loading via `d3.csv`. Points are rendered as SVG circles with tooltips, and axis ticks are generated using `xScale.ticks()` and `yScale.ticks()`. The layout uses fixed dimensions and margins, with axis labels updating dynamically based on the selected attributes.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes