activity 6_Q1_1
✓ Published1🌍 Public
This example displays a horizontal bar chart ranking the ten most populous countries by their year 2000 population, with labeled axes and a green fill for data marks. Built with React and D3.v5, it imports `scaleBand` and `scaleLinear` to map countries and population values to SVG coordinates, while `AxisBottom` and `AxisLeft` render ticks and labels. The `Marks` component creates rectangles with hover tooltips, and data is loaded asynchronously from a remote CSV using D3’s `csv` function.
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