Skip to main content
100%

Making a Bar Chart

✓ Published3🌍 Public
Hhanulik.ondrej@gmail.com
Last edited May 30, 2021
Created on Apr 17, 2021
Forked from Basic shapes

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 description

This 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

Similar vizzes