Skip to main content
100%

Fork of Activity 8 Task 1 Q1.2

✓ Published0🌍 Public
WWilliam Nsambu
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Activity 8 Task 1

A horizontal bar chart displays the populations of twenty countries in 2010, sorted by country name. The visualization is built with React and renders SVG elements, using D3 scales (`scaleBand` and `scaleLinear`) to map data to positions. Data is loaded asynchronously from a CSV file via D3’s `csv` function, with population values converted from thousands. Axes and marks are implemented as reusable React components, and the bars include native SVG `<title>` elements for tooltips.

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