Skip to main content
100%

activity6_task1.2

✓ Published0🌍 Public
CCodeNinja
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Activity 7

This example shows a horizontal bar chart of 2010 population data for 20 countries, with country names on the y-axis and population scaled along the x-axis. The visualization is rendered as an SVG using React components and D3 v5 scales, including `scaleBand` for the categorical axis and `scaleLinear` for the numeric axis. Data is loaded from a remote CSV file using the `csv` function from D3, with population values multiplied by one thousand. Axes, tick lines, and bar marks are built from custom React components, with title tooltips formatting population values using D3’s `format` function.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes