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 stars0🌍 Public
SSowjanya Devupalli
Last edited Oct 18, 2024
Created on Oct 18, 2024

This bar chart displays population figures for ten countries, using horizontal bars sorted by the dataset’s original order. The visualization loads data from a CSV file, multiplies each population value by 1,000, and renders it as SVG rectangles. It uses D3 v7’s `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft` and `axisBottom` to generate the labeled axes. The chart applies margins and a steelblue fill to the bars via CSS.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed