🌍 Public
Viewing a saved revision (read-only)
50d70d0b5b5244abb30d8f8a16040923
Activity6_Question-1.1
This example visualizes the population of ten countries in the year 2000, using a horizontal bar chart rendered as SVG within a React application. The chart displays countries on the y-axis and their population values on the x-axis, with a tooltip showing the formatted population value for each bar. The implementation uses D3 v5's `scaleBand` and `scaleLinear` for scaling, along with custom React components for axes and marks, while the data is loaded from a CSV file via `d3.csv`.
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.