Activity6-Question1.2
✓ Published0🌍 Public
This example displays the population of 20 countries for 2020 as a horizontal bar chart, with country names on the y-axis and population values formatted in billions on the x-axis. Using React and D3 v5, it loads CSV data via the `csv` function from a GitHub URL, then employs `scaleBand` and `scaleLinear` for the axes. The SVG rendering includes custom `AxisBottom` and `AxisLeft` components, with bars colored light green and tooltips showing formatted values.
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