Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of activity 6_Question 1.2

Public visualization

Viewing a saved revision (read-only)

189658604f5144a0a3ce3477ef4d57d0

Fork of activity 6_Question 1.2

0 stars0🌍 Public
AAnilreddyveeraiahgari@my.unt.edu
Last edited Apr 4, 2025
Created on Apr 4, 2025

This example displays a horizontal bar chart of the 2020 population for 20 countries, taken from a CSV file hosted on GitHub. Built with React and D3 v5, it uses `d3.scaleBand` and `d3.scaleLinear` to position bars and axes, rendering to an SVG canvas. Population values are formatted with `d3.format` to display in billions, and each bar includes a tooltip via an SVG `<title>` element.

AI-generated description