Fork of Hello VizHub1
✓ Published0🌍 Public
This bar chart displays the populations of 30 countries in 2020, ranked from largest to smallest. The visualization loads a CSV dataset from GitHub and renders horizontal bars in SVG using React. It employs D3 v5’s `scaleBand`, `scaleLinear`, `csv`, `format`, and `max` functions, with custom React components for axes and marks. The x-axis uses abbreviated tick formatting, and hovering over a bar shows an exact population via a tooltip. The chart includes labeled axes and a title specifying the population year.
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