task 8 q1
✓ Published0🌍 Public
This example visualizes the 2020 population estimates for 30 countries as a horizontal bar chart. Population values are loaded from a remote CSV file via `d3.csv`, with the y-axis ordered by country name using `d3.scaleBand` and the x-axis scaled linearly with `d3.scaleLinear`. The chart is rendered as SVG in a React app, using local AxisBottom, AxisLeft, and Marks components to draw axes and bars, with tooltips formatted using D3’s `format` 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