🌍 Public
Viewing a saved revision (read-only)
3ed7fa37fd8e4e58816f9f6851f2ce15
Scatter Plot with Menu
This example visualizes worldwide export data to the US and China, plotting each country as a circular point on a scatter plot with color-coded categories. The visualization includes a dropdown menu with options A, B, and C, though it does not currently affect the display. The code uses d3.csv to load the dataset, d3.scaleLinear for positioning, d3.scaleOrdinal with schemeCategory10 for colors, and renders axes and legends using d3.axisLeft, d3.axisBottom, and SVG elements.
AI-generated description