Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
WWayne716
Last edited Nov 17, 2020
Created on Nov 16, 2020
Forked from Face with D3.js

This bar chart ranks the populations of ten countries in 2018, showing China and India as the most populous. The visualization uses D3 version 6 with an SVG rendering. The code imports `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from D3 to construct the axes and scales. It reads population data from a CSV file, multiplies each value by 1000, and draws steel-blue rectangles with widths proportional to population, using margins and a padded band scale for country labels.

AI-generated description
MIT Licensed

Similar vizzes