Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars1๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed