Fork of Activity6_Q1.1
✓ Published1🌍 Public
This example displays a horizontal bar chart ranking the populations of ten countries for the year 2000, using D3 version 5 scales and SVG rendering within a React component. The code imports `scaleBand` and `scaleLinear` to map country names and population values to screen coordinates, with `format` applying a compact tick label format. Data is pulled from a remote CSV file via `d3.csv`, and the chart is rendered with custom React modules for axes and marks.
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