Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of activity 6 q1.2

Public visualization

Fork of Fork of activity 6 q1.2

0 stars0🌍 Public
RRakesh Yadav
Last edited Apr 10, 2024
Created on Apr 10, 2024

This visualization displays a horizontal bar chart of population data for the top 20 countries in 2010, sorted in descending order. The chart uses D3.js (v5) with React to render SVG rectangles, where bar length encodes population values and the y-axis lists country names. The code employs `scaleBand` and `scaleLinear` from D3 for axes, with data loaded from a CSV via `d3.csv`. Axis ticks are styled with yellow lines, and tooltips show formatted population values when hovering over bars.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed