Activity6_Question1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart comparing population figures for the top ten countries from a remote CSV file. The visualization uses D3’s scaleBand for the categorical y-axis and scaleLinear for the continuous x-axis, with bars rendered as SVG rectangles. Country names appear on the left axis, while population values are formatted using D3’s format function to abbreviate large numbers. The chart is built within a React component, pulling data asynchronously via d3.csv, and includes interactive tooltips showing the precise formatted population value for each bar.
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