🌍 Public
Viewing a saved revision (read-only)
fb64a718f9f441b19538b6f0f2dfacf7
Hello VizHub! - DV
This example displays a horizontal bar chart of the top ten countries by population in the year 2000. The chart uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, with bars rendered as SVG `rect` elements via React. Hovering over a bar shows a tooltip with the population value formatted using D3’s `format`. The data is loaded asynchronously from a CSV file using `d3.csv`.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.