Fork of Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The code employs `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis, with `d3.axisBottom` and `d3.axisLeft` for tick rendering. It removes default axis domains and tick lines, adds custom labels, and formats tick marks with `d3.format`. D3’s `csv` function loads the data, which is multiplied by 1000 before rendering as `<rect>` elements inside an SVG.
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