Skip to main content
100%

Activity6_question1.2

✓ Published0🌍 Public
VVrushikaKanaparthy@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of the population for the top 20 countries in 2010, sorted by country name. Each bar’s length encodes the population value, with a tooltip revealing the precise number on hover. The visualization is built with React, using D3 v5’s `scaleBand` and `scaleLinear` for positioning, and renders SVG `<rect>` elements for the marks. The data is loaded from a CSV file using D3’s `csv` function, and custom axis components generate the ticks and labels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes