Skip to main content
100%

Making a Bar graph

✓ Published1🌍 Public
PPraneeth Varma
Last edited May 7, 2020
Created on May 7, 2020
Forked from SVG and CSS

This example shows a horizontal bar chart of the ten most populous countries, with population values from a UN report. The code loads data from a CSV file, multiplies the raw population figures by 1000, and renders bars using SVG `rect` elements. It uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisLeft` and `d3.axisBottom` for the axes, with data loaded via `d3.csv`.

AI-generated description

It is the data of top ten populous countries in the world, according to the report by UN

MIT Licensed

Similar vizzes