This visualization displays the percentages of four different products imported by each country, with data points representing individual countries. The scatter plot dynamically cycles through different product dimensions on the x-axis every 1.7 seconds using `setInterval`. The visualization uses D3 v6 with SVG rendering, employing `scaleLinear`, `axisLeft`, `axisBottom`, and `scatterPlot()` from a reusable chart module. Data is loaded from a remote CSV file, with US data points highlighted in yellow and other countries in red, alongside a custom legend.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
MIT Licensed
Comments
Sign in to join the discussion.