Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity 6_Task1 question1.2

Public visualization

Fork of Activity 6_Task1 question1.2

0 stars0🌍 Public
Ssasidhharreddy@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This bar chart displays the population of 20 countries in 2010, sorted alphabetically along the vertical axis with horizontal bars extending to population values. The visualization uses React with D3 v5 modules including scaleBand, scaleLinear, and format to construct the SVG. Data is loaded via d3.csv from a GitHub-hosted CSV file, with the raw ’2010’ values multiplied by 1000 to represent actual population counts. Green bars include native SVG `<title>` tooltips showing formatted population values, while axis ticks and labels are styled with custom CSS.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed