🌍 Public
Viewing a saved revision (read-only)
3fb875c9a70b41f9b995e1557ea77ac5
Simple Bar Chart
This bar chart displays the populations of ten countries for the year 2020, using horizontal bars sorted by the data's original order. The visualization loads its data from a CSV file via `d3.csv`, stores it in React state, and renders SVG rectangles positioned with `scaleBand` and scaled with `scaleLinear`. The chart is built with React 17, D3 7, and targets an SVG canvas.
AI-generated descriptionLoads in some data using D3 and uses react state to track the data