Skip to main content
100%

Activity 6_Question 2

✓ Published0🌍 Public
Aakhilasannayila@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of population figures for 20 countries in 2010, with each bar’s length encoded by population value and countries labeled on the y-axis. The visualization is built with React and D3 v5, using `scaleBand` and `scaleLinear` for positioning, and custom `AxisBottom` and `AxisLeft` components to render tick marks and labels. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, and bars are drawn as SVG `<rect>` elements with a tooltip using the native `<title>` element.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes