Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6

Public visualization

Viewing a saved revision (read-only)

ed25655fec2a4ffd957b9846c27c406d

Activity 6

0 stars1🌍 Public
Aamireddy.sw@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

A horizontal bar chart displays population estimates for 30 countries in 2020, sorted by country name. The chart uses D3 v5 and React to render SVG elements, with `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. Data is loaded via `d3.csv` from a GitHub repository, with population values converted from thousands. The code formats tick labels using `d3.format` and includes interactive tooltips via SVG `<title>` elements.

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.