Skip to main content
100%

Activity-6_Task-1

✓ Published0🌍 Public
Rreachtoshasidhar07@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Hello VizHub

This horizontal bar chart displays the top 30 countries by population in 2020, using green bars sorted alphabetically with a tooltip showing the formatted population value. The visualization is built with React, uses d3.scaleBand for the y-axis, d3.scaleLinear for the x-axis, and d3.format to convert large numbers into billions. It loads population data via d3.csv from a GitHub-hosted CSV file and renders the chart as an SVG with custom axis components.

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