Activity 7 Task 1
✓ Published0🌍 Public
This bar chart displays the population of twenty countries for the year 2020, with countries listed on the vertical axis and population values on the horizontal axis. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering orange rectangles as marks via SVG. Data is loaded from a remote CSV file using D3’s `csv` function, and axis ticks are customized with a format that converts values to billions. The chart includes blue tick lines and a labeled x-axis for population.
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