Skip to main content
100%

Activity_6_test2

✓ 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 20 countries in 2010, with data loaded from a remote CSV and rendered as an SVG using React and D3 v5. It uses `d3.csv` to fetch and parse the dataset, `scaleBand` for the categorical y-axis, and `scaleLinear` for the numeric x-axis. Custom React components draw the axes and marks, with green bars whose widths encode population values and tooltips showing formatted numbers via `d3.format`.

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