Activity6_Task1_Qus1
✓ Published0🌍 Public
This example displays a horizontal bar chart comparing the populations of ten countries in 2010. Using React with D3 v5, it loads CSV data from GitHub and renders SVG bar marks via the `Marks` component. The `scaleBand` and `scaleLinear` functions map country names and population values, while `AxisBottom` and `AxisLeft` generate the axes. The chart formats population tick labels using `format('.2s')` to replace G with B. A loading state shows "Loading..." until the CSV is fetched and processed.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed