🌍 Public
Viewing a saved revision (read-only)
a11112d07bba463cbb0da1303a6282ee
Activity-6 Task1
This bar chart displays the population of 30 countries in 2020, using a horizontal layout with countries listed on the y-axis and population values extending to the right. Built with React and D3 v5, it renders SVG rectangles via the `Marks` component, while `AxisBottom` and `AxisLeft` generate the axes. Population values are loaded from a remote CSV and formatted with `d3.format`; hovering reveals a tooltip with the formatted 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.