Skip to main content
100%

D3 Exercise - Bar Chart

✓ Published0🌍 Public
Ddavidvanr21
Last edited Jan 27, 2021
Created on Nov 12, 2020

This bar chart displays yearly population changes for a country from 2014 to 2019, using horizontal bars scaled by population values. The visualization loads CSV data, multiplies population figures by 1,000, and renders SVG rectangles with D3’s `scaleLinear` for the x-axis and `scaleBand` for the y-axis. It uses `axisLeft` and `axisBottom` for labeled ticks, with margins applied to the main group for clear presentation.

AI-generated description
MIT Licensed

Similar vizzes