question 1.1
✓ Published0🌍 Public
This example shows a horizontal bar chart ranking the populations of ten countries in the year 2000, using a dataset loaded via `d3.csv`. Green rectangles (`<rect>`) represent population values on a linear scale, with countries on a band scale and a formatted tick axis converting values to billions. Built with React and D3 v5, it uses `scaleBand`, `scaleLinear`, and `max` from D3 to compute scales, while `AxisBottom`, `AxisLeft`, and `Marks` are local ES6 modules rendering SVG elements. The chart includes a loading state and SVG tooltips via `<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