Activity6_Question1.2
✓ Published0🌍 Public
This example shows a horizontal bar chart of population figures for the top 20 countries in 2010, with country names on the y-axis and population counts on the x-axis. The chart uses React with D3 v5 scales and axes, loading data from a remote CSV file via `d3.csv`. Bars are rendered as SVG `rect` elements with a tooltip that formats values using `d3.format`, and the visualization includes custom axis components built with `scaleBand` and `scaleLinear`.
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.
MIT Licensed