Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_TaskQ2

Public visualization

Viewing a saved revision (read-only)

0a9edb7de46648a8b7549fa5f120b454

Activity6_TaskQ2

0 stars0🌍 Public
Ssumanthpenna0221@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

A bar chart displays the top 30 countries by population in 2010, using a horizontal layout with countries on the y-axis and population values on the x-axis. The chart renders as SVG within a React application, using D3’s `scaleBand` and `scaleLinear` to position bars and axes. Population values are parsed from a CSV file and formatted with D3’s `format` function, converting values from millions to billions with a custom tick label. The visualization includes styled axes, a chart title, and tooltips that show the precise population value for each bar when hovered.

AI-generated description