Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question1

Public visualization

Activity6_Question1

0 stars0🌍 Public
Mmasters200128@gmail.com
Last edited Apr 14, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of population figures for ten countries in the year 2000. The chart uses React with D3 v5, rendering SVG elements through JSX components. It loads CSV data via d3.csv, uses scaleBand for the categorical y-axis and scaleLinear for the numeric x-axis, and formats tick labels with d3.format. The bars and axes are built with custom React components, and tooltips display the population value for each country.

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