Skip to main content
100%

Bar Chart

✓ Published1🌍 Public
KKrishna.
Last edited Oct 30, 2025
Created on Oct 30, 2025
Forked from HTML Starter

A horizontal bar chart displays the top 10 countries by population in the year 2000, with bars extending from a zero baseline. The chart loads a CSV dataset from a GitHub gist and uses D3 v7 to parse the data, sort it in descending order, and render the bars as SVG rectangles using `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. Hovering over a bar changes its fill color.

AI-generated description
MIT Licensed

Similar vizzes