Activity6Question1.1
✓ Published0🌍 Public
A horizontal bar chart displays the populations of twenty countries in 2010, using D3's `scaleBand` for the categorical country axis and `scaleLinear` for the quantitative population axis. The chart is rendered as an SVG with React, where the `Marks` component draws green rectangles with tooltips showing formatted values via D3's `format` function. The data is loaded from a GitHub-hosted CSV using `d3.csv`, and custom `AxisBottom` and `AxisLeft` components generate blue tick lines and styled tick labels.
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