Skip to main content
100%

Activity 8 - Q1

✓ Published0🌍 Public
SSamir Tarda
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of population figures for ten countries in the year 2000, using a bar length to encode each value. The chart is built with React and renders SVG elements, using D3 v5’s `scaleBand` and `scaleLinear` for positioning and scaling. Data is loaded asynchronously from a GitHub-hosted CSV file via D3’s `csv` parser. The code also demonstrates custom axis components and a tooltip that appears on hover through an SVG `<title>` element.

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