Skip to main content
100%

Activity6_Task1

✓ Published0🌍 Public
Ss.harshinisai01@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart ranking the populations of 30 countries for 2020. It is built with React and renders to SVG. The chart uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and `d3.format` to abbreviate tick labels (e.g., converting billions to “B”). Data is loaded asynchronously from a remote CSV file using `d3.csv`, and each bar includes a native SVG `<title>` element for hover 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