Skip to main content
100%

Activity_6_Question1.1

✓ Published0🌍 Public
HHarsha vardhan reddy Yarmareddy
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the population of ten countries in the year 2000, using a dataset loaded from a GitHub-hosted CSV file. The visualization uses React components to render SVG elements, with D3 v5 scales (`scaleBand` and `scaleLinear`) handling the positioning and sizing of the bars. Axis components generate tick marks and labels, while circular tooltips appear on hover via SVG `<title>` elements. The chart formats population values with D3's `format('.2s')` to display numbers in billions.

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