Skip to main content
100%

Data as bar chart

✓ Published1🌍 Public
Ccarbuncle-3djs
Last edited Sep 24, 2020
Created on Sep 24, 2020

A horizontal bar chart ranks the twenty most populous countries, showing population counts with steel-blue bars and labeled axes. Built with D3 v6, the visualization loads CSV data from Kaggle, maps populations to a linear scale and countries to a band scale, and renders the chart as SVG. The code uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to construct the scales and axes.

AI-generated description

A basic example of D3.JS usage for building bar charts

The data comes from Kaggle.com: Population by country - 2020 dataset

MIT Licensed

Similar vizzes