Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Make a bar chart

Public visualization

Make a bar chart

1 star1🌍 Public
Ppeterjchan
Last edited Mar 25, 2020
Created on Mar 18, 2020

A horizontal bar chart displays 2018 population estimates for ten countries, ranked from China to Mexico. The visualization uses D3.js version 5 with an SVG rendering approach, employing `scaleLinear` and `scaleBand` to map population values and country names to bar dimensions. Data is loaded from a CSV file and multiplied by 1000 to reflect true population counts. Axes are generated with `axisLeft` and `axisBottom`, while a title labels the chart.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed