Act6_Q1.1
✓ Published0🌍 Public
This horizontal bar chart displays population data for ten countries in the year 2000, with countries listed on the y-axis and population values on the x-axis. The visualization uses React components with D3 v5 scaleBand and scaleLinear to position bars, while custom AxisBottom and AxisLeft components render the tick marks. Data is loaded from a remote CSV file using D3’s csv method, with population values formatted using the format function to abbreviate large numbers. The SVG rendering includes tooltips via native title elements that show the exact population 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