Skip to main content
100%

Fork of Fork of Activity 6_Question1b

✓ Published0🌍 Public
Aanusha.chilkamarri26@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024

This example shows a horizontal bar chart of population for twenty countries, using a log-like linear scale where each bar’s length encodes the 2010 population value. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis. Axes are rendered as SVG components, with tick formatting converting values to billions and a tooltip showing the precise figure. The data is loaded via D3’s `csv` from a GitHub repository, sliced to the top twenty entries.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes