🌍 Public
Viewing a saved revision (read-only)
7d788573eb944a14a36b20d6e91fde6e
Scatter Plot with Menus
A scatter plot displays football player statistics across six attributes (ARG, BRA, ESP, FRA, GER, ITA) from a FIFA dataset. Two dropdown menus let viewers independently select which attribute appears on the x- and y-axes, with react state managing the selection. The code uses d3.scaleLinear for scales, d3.extent for domains, and d3.csv to load data, rendering circles as SVG marks with tooltips via the title element. Axis components generate ticks with tick formatting using d3.format.
AI-generated descriptionA scatter plot with menus of The fifa Dataset.