Skip to main content
100%

Fork of activity 6_Task 1

✓ Published0🌍 Public
SSumanthnaidu213
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from activity 6_Task 1

This horizontal bar chart visualizes the 2020 population for 30 countries, sorted from largest to smallest, with a green fill and blue axis ticks against a clean background. The chart loads data from a GitHub-hosted CSV via `d3.csv` and renders it as SVG using React components. D3's `scaleBand` and `scaleLinear` position the bars, while `format('.2s')` formats tick labels to show values in billions. Interactive tooltips display the exact population representation for each bar.

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