Skip to main content
100%

Activity_6_test

✓ Published1🌍 Public
HHafsa Hayath
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart ranking the populations of ten countries in the year 2000, using a dataset loaded from a GitHub-hosted CSV file. The visualization is rendered as an SVG in a React application, with D3 v5 providing the scales and formatting: `d3.scaleBand` for the categorical country axis, `d3.scaleLinear` for the population values, and `d3.format` to abbreviate tick labels from millions to billions. The code imports separate React components for the axes and bars, and includes interactive tooltips via SVG `<title>` elements.

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