🌍 Public
Viewing a saved revision (read-only)
9bda922152d5488692384124d096dd27
Activity6_Task1
This bar chart displays the 2020 populations of 30 countries, ranked from largest to smallest along the vertical axis. The horizontal bars use a green fill, with the x-axis formatted in billions using D3’s `format` function. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical country axis and `scaleLinear` for the population scale. SVG rendering handles the axes and marks, with tooltips provided by SVG `<title>` elements showing the formatted population value.
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.