EP04 | 學會 D3.js 製作圖表 - 製作散佈圖(Scatter Plot)
✓ Published1🌍 Public
This scatter plot displays the populations of the top 12 countries in 2020, with each circle representing a country positioned along a linear x-axis for population and a point scale y-axis for country names. The visualization uses D3 v7 APIs including `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` to render SVG axes and circles. Data is loaded from a CSV file via `d3.csv`, with population values converted from strings to numbers and multiplied by 1000. Custom styling through CSS classes formats tick labels, axis lines, and the title.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed