Skip to main content
100%

activity 6_Q1_2

✓ Published0🌍 Public
TTarshit Vupperla
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from activity 6_Q1_1

This example shows a horizontal bar chart of the top 10 countries by population from a 2010 dataset. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles. Axes are rendered using D3’s `format` with a custom tick label that converts values to billions. The chart loads data via `d3.csv` and renders the rectangles with 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