Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

making bar chart

Public visualization

making bar chart

0 stars1🌍 Public
Ttayyabanisar
Last edited May 14, 2020
Created on May 14, 2020
Forked from making bar chart

This bar chart displays the populations of ten countries, using horizontal bars ordered by country name. The code creates an SVG visualization using D3 v5, loading data from a CSV file. It employs `scaleLinear` and `scaleBand` to map population values and country names to bar lengths and vertical positions, while `axisLeft` and `axisBottom` add the corresponding axes. The population values are parsed and multiplied by 1000, and bars are drawn as rectangles with heights determined by the band scale.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed