Skip to main content
100%

Activity 6_Task 1 (q1)

✓ Published0🌍 Public
Aaravapalliharika2002@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity 6_Task 1

This visualization displays population data for ten countries in the year 2000 as horizontal bars, using SVG rendering within a React framework. The chart encodes population values with bar length on a linear scale, while countries are positioned along a band scale. It loads a CSV dataset from a GitHub URL and formats population numbers in abbreviated form using D3’s `format` function, replacing ’G’ with ’B’ for billions. React components manage axes and marks, with D3’s `scaleBand` and `scaleLinear` handling the spatial mapping, and native SVG `<title>` elements provide tooltips.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes