Making a Bar Chart
✓ Published2🌍 Public
This example shows the populations of the top 10 most populous countries from a 2018 United Nations estimate, displayed as circles on an SVG bar chart with customized axes. The code uses D3 v5’s `csv` loader, `scaleLinear`, and `scalePoint` to map data values, while `axisBottom` and `axisLeft` apply tick formatting. Axis grid lines and labels are styled via CSS, and the chart includes a title. The accompanying video walks through building the visualization step by step.
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. It also demonstrates customization of D3 axes.
MIT Licensed