Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_tutorial 1 task 2

Public visualization

Viewing a saved revision (read-only)

8954598f1047414bb0dbc010717ed0a8

activity6_tutorial 1 task 2

0 stars0🌍 Public
Nnissisharon61@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This example shows the 2010 population for the first 20 countries from a CSV file as a horizontal bar chart, with light-green bars sorted by country name. The chart uses D3 v7's `scaleLinear` and `scaleBand` for axes, `axisBottom` and `axisLeft` for tick marks, and `csv` to asynchronously load the data from a GitHub gist. Each bar is drawn as an SVG `rect`, with the x-axis labeled "POPULATION – 2010" and the y-axis "Countries".

AI-generated description