act 6 q1
✓ Published1🌍 Public
This example displays a horizontal bar chart of population estimates for ten countries in 2000, ranked by country name along the y-axis. The chart is rendered as an SVG using React components, with scales and formatting provided by D3 v5 methods such as `scaleBand`, `scaleLinear`, `max`, and `format`. Data is loaded asynchronously from a CSV via `csv` and the `useData` hook, with population values converted from thousands. Native SVG `<title>` elements supply tooltips, while D3 ticks are customized with blue grid lines and axis 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