🌍 Public
Viewing a saved revision (read-only)
80528a4d9911487681da9492c3626b9a
task1
This bar chart shows the population of 30 countries in 2020. Built with React and D3 v5, it uses `d3.scaleBand` and `d3.scaleLinear` to map country names and populations to SVG rectangles. Data is loaded from a CSV file via `d3.csv` and formatted using `d3.format`. Axes are custom-rendered, with hover tooltips displaying the formatted population values.
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.