Skip to main content
100%

Make a Bar Chart with D3.js

✓ Published1🌍 Public
Nnikomc
Last edited Mar 30, 2020
Created on Mar 30, 2020

A horizontal bar chart displays population figures for the five most populous countries, sourced from World Population Prospects 2017. The chart renders population values on the x-axis and country names on the y-axis using SVG. The code uses D3 v5 methods including `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. Population data is loaded from a local CSV file and multiplied by 1000 before being scaled, with bars styled in steel blue.

AI-generated description

This bar chart shows population of the five most populous countries, from World Population Prospects 2017.

MIT Licensed

Similar vizzes