Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity - 6_Question - 1.1

Public visualization

Viewing a saved revision (read-only)

d72ee791e2184b018a983a33a08e70ad

Fork of Activity - 6_Question - 1.1

0 stars3🌍 Public
Pphanisrivinnakota@gmail.com
Last edited Apr 6, 2024
Created on Apr 6, 2024

This example displays a horizontal bar chart of population figures for ten countries in 2010. It uses React and D3 v5 to render SVG elements, with axes and marks built from modular components. The `scaleBand` and `scaleLinear` functions position the bars, while `d3.csv` loads data from a remote GitHub CSV file. Tooltips show formatted population values using D3’s `format` function.

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.