Nagalakshmi
✓ Published0🌍 Public
A horizontal bar chart displays the population of ten countries in the year 2000, with countries listed on the y-axis and population values on the x-axis. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map data, rendering SVG rectangles for bars. The chart fetches data from a GitHub CSV and formats axis ticks using D3's `format` function. Tooltips on each bar show the exact population value.
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