Bar Chart
✓ Published1🌍 Public
A scatter plot displays the relationship between GDP and life expectancy across approximately 110 countries, with points colored by world region. The D3.js v7 code loads data from a CSV file using `d3.csv`, applies linear scales for both axes via `scaleLinear`, and maps each data point to a circle using `d3.selectAll` and `.join`. Axes are rendered with `d3.axisBottom` and `d3.axisLeft`, while a categorical color scale using `d3.scaleOrdinal` and `schemeTableau10` distinguishes geographic regions. The visualization is drawn as SVG elements within a container.
AI-generated descriptionMIT Licensed