Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
GGangumalla Ruchitha Reddy
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This interactive horizontal bar chart visualizes the populations of 30 countries for the year 2020, using data loaded from a CSV file hosted on GitHub. Built with React and D3 v5, the visualization renders as an SVG, with each bar’s length proportional to its population value. The code defines custom axis and marks components, leveraging D3’s `scaleBand`, `scaleLinear`, and `format` APIs to manage scales and tick formatting. Hovering over a bar reveals the population value via a tooltip, while the axes are styled with blue tick lines and gray labels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes