Skip to main content
100%

Fork of Activity6_Task1

✓ Published0🌍 Public
PPreethi Medepalli-91
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task1

A horizontal bar chart displays the 2020 population for the top 30 countries, using green bars with blue axis ticks. The chart is built with React and D3 v5, where d3.scaleBand maps country names to the y-axis and d3.scaleLinear maps population values to the x-axis, with a custom tick formatter converting large numbers to billions. Data is loaded from a remote CSV via d3.csv, and tooltips show each bar's exact population value when hovered.

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