Fork of Fork of Task8_Tutorial1_Question1.2HKK
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the 2010 population of 20 countries, with D3's scaleBand and scaleLinear mapping country names and population values to the SVG canvas. The React app loads CSV data via d3.csv, renders axes through custom AxisBottom and AxisLeft components, and displays values using si-format tick labels that convert gigabytes to billions. Blue rectangles represent each country's population, with tooltips showing formatted 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