Activity6_Question1 Khushi
✓ Published0🌍 Public
This example displays a horizontal bar chart comparing the populations of ten countries for the year 2000. The code uses React alongside D3 v5, leveraging `scaleBand` and `scaleLinear` for axes and `format` for tick labels. Data is loaded from a remote CSV file via `d3.csv`, with interactive tooltips provided by SVG `<title>` elements. The visualization renders bar marks within an SVG canvas, styled with a green fill and blue axis lines.
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