🌍 Public
Viewing a saved revision (read-only)
6c5d84216d134298b3f6cca278cba18c
Modifying Bar plot to a scatter plot D3.js
This example transforms a simple bar chart of population data by country into a scatter plot using D3.js. D3's `scaleLinear` maps population values to the x-axis, while `scalePoint` positions each country name along the y-axis, with circles rendered as the marks. The visualization reads from a CSV file and uses `axisLeft` and `axisBottom` to generate the axes, with tick labels formatted using D3's `format` function.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.