Fork of ICE-6: Rendering Marks and Channels with React & D3
This example displays a horizontal bar chart of the top 10 most populous countries in 2019, using an SVG rendering approach. The chart uses a categorical color scale for the bars and labels each country along the y-axis, with population values on the x-axis. The code imports and uses React components such as `useState` and `useEffect`, and leverages D3 functions including `csv`, `scaleBand`, `scaleLinear`, and `max`. The data is loaded from a GitHub Gist CSV file, and the chart is rendered entirely through SVG elements created in a React component.