Skip to main content
100%

Activity 6 Task 1

✓ Published0🌍 Public
Sskykarthik97@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity 7

This interactive SVG bar chart displays the 2020 populations of 30 countries, ranked from largest to smallest, using a horizontal layout. Built with React and D3 v5, it visualizes data from a CSV file, rendering bars with a light green fill and blue tick marks on the axes. The chart leverages D3’s `scaleBand` and `scaleLinear` to map countries and population values to screen coordinates, while the `AxisBottom`, `AxisLeft`, and `Marks` components generate the SVG elements. Tooltips are provided via native SVG `<title>` elements, and axis labels use a formatted scale for readability.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes