Activity 6
✓ Published1🌍 Public
This example displays a horizontal bar chart comparing the 2010 populations of 20 countries, with country names on the y-axis and population values on the x-axis. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map data from a CSV file loaded via `d3.csv`. The visualization renders as SVG, with custom `AxisBottom` and `AxisLeft` components generating ticks, and `Marks` creating rectangles with tooltips formatted using `d3.format`.
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