Skip to main content
100%

Activity6_population_Q1.2

✓ Published0🌍 Public
PPothuguntla Pranitha
Last edited Apr 13, 2024
Created on Apr 12, 2024
Forked from Activity 6

This example presents a horizontal bar chart comparing the 2010 populations of 20 countries, with bars sorted alphabetically by country name. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis. Population values are derived from a CSV dataset and formatted in billions using D3’s `format` function. The SVG rendering includes custom axis components, tick marks, and hover tooltips generated via SVG `<title>` elements.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes