Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6 Q1.2

Public visualization

Viewing a saved revision (read-only)

476fb67f3dfc4378b7f1734fc875e175

Activity-6 Q1.2

0 stars0🌍 Public
KKavyaEti
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This bar chart displays the population of 20 countries in 2010, sourced from a CSV file loaded via `d3.csv`. The visualization uses React with D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. SVG rectangles represent each country, with `d3.format` providing tick labels that abbreviate large numbers. The chart includes styled axes with blue grid lines, and hover tooltips reveal precise values via native SVG `<title>` elements.

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.