Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question1

Public visualization

Viewing a saved revision (read-only)

a7b3eb599773415099137a06132f1d68

Activity6_Question1

0 stars0🌍 Public
Nneerajreddyaluka@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This bar chart displays the population of ten countries in the year 2020, with country names on the vertical axis and population values on the horizontal axis. The chart uses React with D3 v5 scales, including `d3.scaleBand` for the categorical axis and `d3.scaleLinear` for the quantitative axis, rendering SVG rectangles. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, and axis ticks are formatted using `d3.format`. Hovering over a bar reveals a tooltip with the population value.

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.