Skip to main content
100%

Fork of Fork of Activity-6 Q1-1.2

✓ Published0🌍 Public
Kkrishi7079@gmail.com
Last edited Mar 30, 2025
Created on Mar 30, 2025

This example visualizes the 2010 population of 20 countries as a horizontal bar chart, with each bar’s length encoding population magnitude. The bars are rendered as light green rectangles on an SVG canvas, using a linear x-scale and a band y-scale for country labels. Population data is loaded from a GitHub-hosted CSV via `d3.csv`. Axes are configured with `d3.axisBottom` and `d3.axisLeft`, with tick labels formatted using `d3.format` (converting millions to billions). The chart is built modularly with separate JavaScript files for axes and marks, all orchestrated in `index.js`.

AI-generated description
MIT Licensed

Similar vizzes