MAKING A BAR GRAPH WITH D3.JS
✓ Published0🌍 Public
This example displays a horizontal bar chart ranking the ten most populous countries based on 2018 estimates from the United Nation's World Population Prospects. The visualization uses D3.js v5 with SVG rendering, employing `d3.scaleLinear` for the population axis and `d3.scaleBand` for country categories. Axes are generated using `d3.axisLeft` and `d3.axisBottom`, with population values formatted using `d3.format` and converted from thousands to show actual figures. Data is loaded from a local CSV file, and bars are drawn as styled SVG rectangles.
AI-generated descriptionThis Bar chart shows population of the most top 10 most populated countries. This Data comes from the year 2018 estimate in United Nation: World Population Prospects 2017 .
MIT Licensed