Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar chart

Public visualization

Viewing a saved revision (read-only)

41720358d63b416fb6f2f358e52dcf22

Making a Bar chart

0 stars2🌍 Public
BBazarbayevManas
Last edited Aug 17, 2019
Created on Aug 15, 2019

This bar chart displays the populations of ten countries, using horizontal bars ordered from largest to smallest. The visualization loads data from a CSV file using `d3.csv` and renders it as SVG. The code employs `d3.scaleLinear` for the x-axis population values and `d3.scaleBand` for the categorical y-axis, while axes are generated with `d3.axisLeft` and `d3.axisBottom`. Population numbers are converted from integers with a thousand multiplier before scaling.

AI-generated description