Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7

Public visualization

Viewing a saved revision (read-only)

724759eeb3f74237a132f2bfe23d0171

Activity 7

0 stars0🌍 Public
Aanith462@gmail.com
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This example displays a horizontal bar chart of population data for 20 countries in 2020, using green bars sorted by country name along a categorical y-axis and a linear x-axis with tick labels formatted in billions. Built with React and D3 v5, it loads CSV data via `d3.csv`, scales with `scaleBand` and `scaleLinear`, and renders SVG bar marks, axes, and a title using local ES6 modules for reusable axis and mark 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.