Skip to main content
100%

T8-Q1

✓ Published1🌍 Public
Jjyothikaraj3@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of population data for 30 countries in 2020, using D3 v5 within a React framework to render SVG elements. Bars are colored green, with a blue axis line and formatted tick labels that abbreviate large numbers (e.g., “B” for billions). The code builds scales with `d3.scaleBand` and `d3.scaleLinear`, computes the domain from the CSV data, and uses React components for axes and marks. Data is fetched from a GitHub-hosted CSV file and processed by the `useData` hook.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes