Skip to main content
100%

Activity 6_Task1

✓ Published0🌍 Public
LLakshanya Sirigiri
Last edited Apr 5, 2025
Created on Apr 3, 2025
Forked from Hello VizHub

This interactive bar chart displays the populations of 30 countries for the year 2020, sourced from a GitHub-hosted CSV file. Each bar represents a country, with the length of the bar proportional to its population. The visualization is rendered using React and D3 v5, with a light green fill for the bars and blue tick lines for the axes. Tooltips, shown via `<title>` elements within the SVG `<rect>`s, provide formatted population values. The code utilities include D3's `scaleBand` and `scaleLinear` for coordinate mapping, `format` for tick labels, and `csv` for data loading.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes