Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question1

Public visualization

Viewing a saved revision (read-only)

6467a40b8f0b459b9834f115027066f4

Activity6_Question1

0 stars2🌍 Public
CChandra Prakash Reddy Kalwakolu
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This bar chart visualizes the population of ten countries in the year 2000, ordered along a categorical y-axis. The visualization uses React and D3 v5 to render an SVG, with `d3.scaleBand` and `d3.scaleLinear` mapping country names to horizontal bar lengths. Data is loaded from a remote CSV file via `d3.csv`, with population values converted from thousands. Axis ticks and bar tooltips are formatted using `d3.format`, and the chart includes styled axis lines and labels.

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.