Skip to main content
100%

Fork of Activity 6-Task1Question1

✓ Published0🌍 Public
Ppslharika@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity 6-Task1

This example presents a horizontal bar chart of population figures for 30 countries in 2020, with each bar’s length encoding the population value and the y-axis listing country names. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map data to SVG rectangles, `format('.2s')` to abbreviate axis ticks (converting G to B), and a `<title>` element for hover tooltips. Data is loaded from a remote CSV via `d3.csv`, and the chart is rendered entirely as SVG with custom axis components.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes