Scatter Plot with Menu
✓ Published0🌍 Public
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 descriptionMIT Licensed