Fork of ICE_6
✓ Published0🌍 Public
This example visualizes population estimates for a subset of U.S. states using a horizontal bar chart rendered as SVG via React and D3. It shows the relative population sizes for ten states, with each bar’s length encoded by the population value and the state name labeled along the vertical axis. The code loads CSV data from a remote URL, parses the population column as numbers, and uses `scaleBand` for the y-axis and `scaleLinear` for the x-axis. It also employs `axisLeft` and `axisBottom` indirectly through custom tick rendering, with grid lines and tick labels drawn manually using D3 selections and React’s `map` function.
AI-generated descriptionHi
MIT Licensed