🌍 Public
Viewing a saved revision (read-only)
c527c28c98434eb6ae1c20233ab6e5e5
Scatter Plot with Menu
This example displays a scatter plot of worldwide export values, comparing exports from the United States and Mexico, with each circle colored according to its indicator category and a legend identifying those categories. A dropdown menu, built with a custom `dropDownMenu` function, presents options A, B, and C, though no interaction logic is bound to it in the shown code. The visualization uses D3 v5 APIs including `scaleLinear`, `axisBottom`, `axisLeft`, and `scaleOrdinal` with `schemeCategory10` for coloring, rendering SVG circles with semi-transparent red fills as defined in the stylesheet. Data is loaded as CSV from a VizHub-hosted dataset.
AI-generated description