Activity 6_Task1 Question 1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for ten countries in the year 2000, using d3.scaleBand for the categorical y-axis and d3.scaleLinear for the numeric x-axis. The React application loads CSV data from a GitHub repository via d3.csv, formats population values with the d3.format function, and renders SVG rectangles as marks with tooltips. Custom axis components generate tick lines and labels, while the chart includes a bottom axis label for "POPULATION-2000".
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