Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ACT6-Question1

Public visualization

ACT6-Question1

0 stars1🌍 Public
RRayabarapu Nikhitha
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from ACT6-TUTORIAL1

This horizontal bar chart displays the top 10 countries by population in the year 2000, with countries listed on the y-axis and their populations (in billions) on the x-axis. It uses React with D3 (v5) for scaling and encoding, rendering as an SVG. The example loads the dataset via `d3.csv` from a GitHub URL, uses `scaleBand` and `scaleLinear` for axes, and creates interactive tooltips with the `<title>` SVG element. Styling is applied via CSS for hover effects and axis aesthetics.

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.

Comments

Sign in to join the discussion.

MIT Licensed