Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity 7 sample

Public visualization

Fork of Activity 7 sample

0 stars0🌍 Public
Kkrishi7079@gmail.com
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Activity 7

This fork of Activity 7 shows a horizontal bar chart of 2020 population estimates for 30 countries, with bars colored green on an SVG rendered through React. The code uses d3.scaleBand for the categorical y-axis, d3.scaleLinear for the quantitative x-axis, and d3.format to abbreviate tick labels (e.g., “B” for billions). Data is loaded from a CSV file via d3.csv and transformed by multiplying the “2020” column by 1000. Axes and marks are built declaratively as React components, with a `<title>` element providing a native tooltip on each bar.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed