Activity_6_Task_1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for 30 countries from 2020, with bars extending from a left-aligned axis and a formatted x-axis showing population counts. It is built with React and D3 v5, loading data from a CSV file using `d3.csv` and rendering SVG elements via React components. The chart uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and custom tick formatting to abbreviate large numbers. Interactive tooltips show exact formatted population values on each bar.
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