Skip to main content
100%

Activity6_Question1-1

✓ Published0🌍 Public
Aayeshamanzoor111798@gmail.com
Last edited Oct 25, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of the populations of the top ten countries in the year 2000. The visualization uses D3 v5 scale functions, specifically `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, all rendered as SVG via React components. Data is loaded from a remote CSV using D3's `csv` function and formatted with the `format` API for axis labels. The chart includes custom tick marks and axis labels, with interaction provided through SVG `<title>` 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