Making a Bar Chart
✓ Published3🌍 Public
This example shows a horizontal bar chart of the ten most populous countries using population data from the UN, with each bar labeled by country and a formatted x-axis in millions. It renders with SVG, and the code uses D3 v6 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `csv` to load and parse the data. The chart includes a title, axis labels, and styled grid lines, with bars filled via CSS. The y-axis is ordered alphabetically by country, and population values are multiplied by 1000 before scaling.
AI-generated descriptionThis bar chart shows population ... (https://www.un.org/en/) O formátech (http://bl.ocks.org/zanarmstrong/05c1e95bf7aa16c4768e) O barvách (Google: data visualization style guide sunlight)
MIT Licensed