Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7

Public visualization

Activity 7

0 stars0🌍 Public
Ssaikrishnabussa
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from Activity 7

This bar chart displays population figures for 20 countries in 2020, using horizontal bars sorted by country name. The visualization loads CSV data from a GitHub gist, parses the population values, and renders SVG rectangles scaled by a d3.scaleLinear x-axis with a d3.scaleBand y-axis. Custom React components for axes and marks handle ticks and tooltips, while formatting converts raw values to billions using d3.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.

Comments

Sign in to join the discussion.

MIT Licensed