Activity-6_Question-1
✓ Published0🌍 Public
This bar chart visualizes the population of ten countries in the year 2000 using React and SVG rendering. It leverages d3 v5 functions such as `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `format` to convert tick labels into billions. A CSV file is loaded remotely via d3’s `csv` method, with each bar’s tooltip revealing the formatted population value. The chart includes styled axes and labels for both the population and country name.
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