Skip to main content
100%

Activity 6 Task 1

✓ Published1🌍 Public
Jjaswanthreddy2000@gmail.com
Last edited Apr 5, 2024
Created on Apr 4, 2024
Forked from Activity 7

This example visualizes the 2020 population for 30 countries as a horizontal bar chart using SVG rendering in a React application. The bars are colored green, with blue tick lines and gray labels for readability. The chart loads data from a CSV file, computes population values by multiplying the 2020 figures by 1000, and applies d3's `scaleBand` and `scaleLinear` for positioning and scaling. D3 v5.11.0 is used for data parsing (`csv`), formatting (`format`), and scales, while React 16.9.0 handles the component rendering, with tooltips displaying formatted population values (e.g., in billions).

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes