Making a bar chart
✓ Published1🌍 Public
This example shows the population of ten countries in 2018, ordered by rank in a horizontal bar chart using SVG. The chart loads data from a CSV file and scales the bars with d3.scaleLinear and d3.scaleBand, while rendering axes via d3.axisLeft and d3.axisBottom. Population values are multiplied by 1,000 in the data-loading step, and the bars are styled with steelblue fill. Data originates from the United Nations.
AI-generated descriptionThis shows population 2018,
united nations (include link)
MIT Licensed