Activity 7
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 20 countries by 2020 population, sourced from a CSV file. It renders SVG elements using React and D3 v5, with axes generated by custom AxisLeft and AxisBottom components that use d3.scaleBand and d3.scaleLinear. Population values are transformed from the '2010' column and formatted with d3.format. The visualization uses a green mark color and a Poppins font, with a loading state shown while data is fetched.
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