Activity 6
✓ Published0🌍 Public
This example displays a horizontal bar chart of country populations in 2020. It loads data from a remote CSV file and renders the chart using SVG within a React component. The code uses D3 version 5's `scaleBand` and `scaleLinear` for axes, and custom React functions handle axis ticks and bar marks. The bars show population values, with a tooltip revealing the formatted number on hover. The visualization is built with ReactDOM and styled with Poppins font from Google Fonts.
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