Customizing Axes
✓ Published0🌍 Public
This example visualizes the top 10 most populous countries as circles, using D3 v5 to map population values along the x-axis. The code loads data from a CSV file via `d3.csv` and applies `scaleLinear` with `.nice()` to create both axes, customizing tick formats with `d3.format`. Grid lines are drawn using negative `tickSize` values, and axis domains are removed. The chart includes styled axis labels and a title, with data sourced from the United Nations World Population Prospects 2017 report.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.
MIT Licensed