Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar chart

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed