Chocolate_price_ScatterPlot
✓ Published1🌍 Public
This reusable scatter plot, built with D3.js v7, visualizes the relationship between a country's CO₂ emissions and its GDP using data loaded from a CSV file. It clearly shows the data distribution across these two variables, with each country represented as a steel-blue circle. The visualization employs D3's `scaleLinear` for both axes, `axisBottom` and `axisLeft` for the tick marks, and `d3.extent` to set the domain. The function `scatterPlot` is designed to be reusable, accepting any container, dataset, and variable names for flexible comparisons.
AI-generated descriptionMIT Licensed