Activity 6_Task 1 Question 1.6
✓ Published0🌍 Public
This example shows a horizontal bar chart of 2020 population estimates for the top 10 countries, with the y-axis listing country names and the x-axis measuring population in billions. It uses React with D3 v5, importing `scaleBand` and `scaleLinear` for scales, and renders SVG via React components. The chart loads CSV data from a GitHub repository using `d3.csv`, formats tick labels with `d3.format`, and each bar includes a `<title>` tooltip showing the 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