Fork of Question 2(2)_Activity 6
✓ Published0🌍 Public
This example shows a horizontal bar chart of population data for 20 countries in 2010, using a green fill for each bar and a blue axis. It loads data from a remote CSV file via `d3.csv` and renders the visualization with React, using `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The chart includes custom axis components built with SVG, tick formatting through `format('.2s')` to convert values to billions, and tooltips via SVG `<title>` elements.
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