Skip to main content
100%

activity 6_Task 1 Q2

✓ Published0🌍 Public
Bbudalavijay2001@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This interactive bar chart displays the population of the top 20 countries for the year 2010, sorted in descending order. Built with React and D3 v5, it uses the `scaleBand` and `scaleLinear` functions to map country names and population values to SVG rectangles. The data is loaded from a CSV file via D3’s `csv` function, and hovering over a bar reveals a tooltip with the population in a compact SI format.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes