Fork of Activity_6_Task_1_Question_1_1
✓ Published1🌍 Public
This example shows a horizontal bar chart comparing the population of ten countries in the year 2000, sorted by country name. The chart uses React components to render SVG elements, with D3’s `scaleBand` and `scaleLinear` handling the layout, while `AxisBottom` and `AxisLeft` generate the axes. Data is loaded using `d3.csv` from a remote GitHub CSV file, and each bar displays a native tooltip with its formatted 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