Skip to main content
100%

Activity8_task1_Q1.2

✓ Published0🌍 Public
Aanusharamana0@gmail.com
Last edited Apr 15, 2024
Created on Apr 14, 2024
Forked from Activity 7

This interactive bar chart displays the population of 20 countries for the year 2010, organized along a horizontal axis with country names on the vertical band scale. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map data, rendered as SVG rectangles with a green fill. Each bar includes a tooltip showing the unformatted population value via the `<title>` element. Data is loaded asynchronously from a remote CSV file using D3's `csv` utility, with x-axis labels formatted using `format('.2s')` and replacing 'G' with 'B' for billions. The chart includes custom axes, margins, and axis labels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes