Activity 7
✓ Published0🌍 Public
This chart displays the populations of 20 countries in 2020 using a horizontal bar chart rendered as SVG elements. The chart uses a linear scale for population values and a band scale for country names, with x-axis ticks formatted to show values in billions. The visualization is built with React and D3 v5, loading data from a CSV file via D3's `csv` function, and it includes interactive tooltips that display the exact population value for each bar. The bars are styled with a light green fill, and the chart is laid out within a 960 by 500 pixel SVG canvas.
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