Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Hello VizHub

Public visualization

Viewing a saved revision (read-only)

0808c504f23f4b5f8ffc7323457b788f

Hello VizHub

0 stars1🌍 Public
Ssanthosh pendyala
Last edited Dec 22, 2019
Created on Dec 17, 2019
Forked from Hello VizHub

This example presents a horizontal bar chart of the populations of the ten most populous countries, using data from a local CSV file. The chart renders as an SVG, with countries listed on the y-axis and population counts on the x-axis. The code employs D3.js v5 functions such as `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. A dark blue background and white bars contrast starkly, while the data is loaded asynchronously and converted to numeric values before being mapped to bar widths.

AI-generated description

population bar chart