Activity 6_Q1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for ten countries from a CSV file, using green bars ordered by country name. It loads data via `d3.csv` and renders the visualization with React and SVG. The chart uses `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and custom `AxisBottom`, `AxisLeft`, and `Marks` components to draw the bars and axes. Blue tick lines, formatted tick labels using `d3.format`, and a "POPULATION-2000" axis label are included.
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