Skip to main content
100%

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

✓ Published1🌍 Public
AAishwarya Manjunath
Last edited Mar 7, 2022
Created on Mar 7, 2022

This example shows a horizontal bar graph of population by country using data from a CSV file. The bars are rendered as SVG rectangles in steel blue, with countries on the y-axis and population values on the x-axis. The code uses `d3.csv` to load the data, `d3.scaleLinear` for the x-scale, `d3.scaleBand` for the y-scale, and `d3.axisLeft` and `d3.axisBottom` to draw the axes. Population values are multiplied by 1000 before rendering.

AI-generated description
MIT Licensed

Similar vizzes