Skip to main content
100%

Making a bar chart!

✓ Published1🌍 Public
Mmikeferri
Last edited Jan 1, 2022
Created on Dec 31, 2021

This horizontal bar chart displays population figures for ten countries, using the D3 v7 library to render an SVG graphic. The code imports specific functions including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from the D3 module. It loads data from a local CSV file, multiplies the population values by 1000, and plots ranked bars with steelblue rectangles. Axis labels and tick marks are generated through D3’s SVG-based axis APIs, with margins surrounding the plot area.

AI-generated description
MIT Licensed

Similar vizzes