Activity-8_Question-1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart showing population figures for ten countries in the year 2000. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear` to map country names and population values to the SVG canvas. Bars are rendered as `rect` elements with tooltips, while axes are built from D3’s `format` utility to abbreviate large numbers (e.g., converting gigabytes to billions). Data loads asynchronously from a CSV file via D3’s `csv` function, and the chart includes custom axis styling with blue tick lines and green marks.
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