Fork of Question1.2
✓ Published0🌍 Public
A bar chart displays the 2010 population of 20 countries, sorted by country name on the y-axis and population on the x-axis. The visualization loads data from a remote CSV via `d3.csv`, converts population values from thousands, and renders horizontal bars using React and SVG. `d3.scaleBand` and `d3.scaleLinear` position bars, while custom `AxisBottom` and `AxisLeft` components generate ticks with `d3.format` for abbreviated axis labels. Hovering reveals tooltips via 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