Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of activity6q1(1)

Public visualization

Viewing a saved revision (read-only)

6b894ac035d24b65a219571be6ce5698

Fork of activity6q1(1)

0 stars1🌍 Public
Ssaitejakaranam10@gmail.com
Last edited Apr 6, 2024
Created on Apr 6, 2024
Forked from activity6q1(2)

This horizontal bar chart displays the population of ten countries in the year 2000, sorted with the largest population at the top. Built with React and D3 v5, it uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, rendering SVG rectangles. Data is loaded from a CSV file using D3’s `csv` function, and axis ticks are formatted with a custom SI prefix function that converts billions to 'B'.

AI-generated description

A demonstration of how to start using D3 version 6.