Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7

Public visualization

Viewing a saved revision (read-only)

053ab3fc150e47d783f1204df81d7343

Activity 7

0 stars0🌍 Public
Bbogasamudramvamsikrishnareddy
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This chart visualizes the 2010 population of the top 20 countries by country, presented as a horizontal bar chart. The code uses React to construct the SVG elements, with D3's `scaleBand` and `scaleLinear` to map data to the x and y axes. The data is fetched live from a CSV file using D3's `csv` function. Blue axis ticks and green bars are styled via CSS, with a tooltip showing the formatted population on hover.

AI-generated description

A demonstration of how to start using D3 version 6.