Task1Ques2
✓ Published0🌍 Public
This bar chart displays the population of 20 countries in 2010, sorted along the y-axis with horizontal bars extending to represent population values. It uses React with D3 v5 to load CSV data via `d3.csv`, and renders SVG marks through the `AxisBottom`, `AxisLeft`, and `Marks` components. The `scaleBand` and `scaleLinear` define the axes, while `format('.2s')` converts tick labels to billions, and tooltips appear as native 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