Skip to main content
100%

Hello VizHub

✓ Published1🌍 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

MIT Licensed

Similar vizzes