🌍 Public
Activity 6_task 1
This bar chart displays the 2020 population estimates for 30 countries, sourced from a CSV file loaded via d3.csv. The visualization uses React with D3 v5, employing scaleBand and scaleLinear for axes and rendering SVG rectangles for each bar. The chart includes labeled axes with formatted tick values, converting billions to a readable format, and tooltips showing exact population values on hover.
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
Comments
Sign in to join the discussion.