Skip to main content
100%

Activity6_population-2000

✓ Published0🌍 Public
Vvinilavoddi@my.unt.edu
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart titled “Population by Country (2000) for Top 10,” showing the population of ten countries. It uses React with D3 v5, importing `scaleBand`, `scaleLinear`, `max`, and `format` from D3. The SVG rendering includes custom `AxisBottom`, `AxisLeft`, and `Marks` components. Data is loaded from a remote CSV using `useData`, and each bar includes a native SVG tooltip showing the formatted 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.
MIT Licensed

Similar vizzes