Skip to main content
100%

Activity6_Task1_Q1.2

✓ Published0🌍 Public
MMeghana Sadhu
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Activity6_Task1

A horizontal bar chart shows the populations of 20 countries in 2010, sorted by country name, with each bar’s length scaled linearly by population and labeled with a shortened numeric format that converts millions to billions. The chart uses D3 v7’s `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft` to construct the axes and marks, with SVG rectangles drawn via `Marks.js` and data loaded from a remote CSV using `d3.csv`. The visualization highlights the relative population magnitudes across countries with a light green fill and blue tick lines.

AI-generated description
MIT Licensed

Similar vizzes