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
黃黃歆善
Last edited Sep 17, 2023
Created on Sep 17, 2023

A horizontal bar chart displays population figures for ten countries, from China to Mexico, with population values in thousands. The chart uses D3 v7’s `scaleLinear` and `scaleBand` to map population and country names, respectively, and renders bars as SVG `rect` elements. Axes are generated with `axisLeft` and `axisBottom`, while data is loaded from a CSV file via `d3.csv`. Steel-blue bars with labeled axes present the ranked population data clearly.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed