Skip to main content
100%

Fork of Let's make a Bar Graph with D3.js

✓ Published0🌍 Public
Vvegurusaiprathyusha
Last edited Mar 7, 2022
Created on Mar 7, 2022

This example shows a horizontal bar chart of the world’s ten most populous countries, using population values from a CSV file. It renders SVG bars with a linear scale for population and a band scale for country names, adding axis labels via `axisLeft` and `axisBottom`. The code imports `select`, `csv`, `scaleLinear`, `scaleBand`, `max`, and the axis functions from D3 v7, and transforms the raw population numbers by multiplying by 1000 before drawing.

AI-generated description
MIT Licensed

Similar vizzes