Skip to main content
100%

Activity 7

✓ Published0🌍 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.
MIT Licensed

Similar vizzes