Skip to main content
100%

D3 Bar Chart

✓ Published1🌍 Public
Kkkwyoung
Last edited Aug 12, 2020
Created on Aug 7, 2020
Forked from D3 Bar Chart

This bar chart displays the populations of the world’s ten most populous countries, with each bar’s length proportional to its population. The chart uses a linear scale for the x-axis and a band scale for the categorical y-axis, drawing the bars as SVG rectangles via the D3.js `select`, `scaleLinear`, `scaleBand`, and `axisBottom` APIs. Population values are parsed from a local CSV file, and axis ticks are formatted using D3’s `format` to abbreviate large numbers, while the chart’s title and axis labels are added as SVG text elements.

AI-generated description

population of top 10 most populous contries

MIT Licensed

Similar vizzes