ICE-6 Bar Graph
✓ Published0🌍 Public
A horizontal bar graph displays annual rainfall totals for twelve districts in Arunachal Pradesh, sourced from a CSV file loaded via `d3.csv`. The visualization uses React’s `useState` and `useEffect` hooks to fetch and filter data, with D3’s `scaleBand` and `scaleLinear` mapping district names and rainfall values to SVG rectangles. The code manually renders grid lines with `xScale.ticks()` and labels, avoiding D3 axes, while `d3.max` determines the domain. The graph updates reactively as the data loads, showing a loading message initially.
AI-generated descriptionA whole smiley face
MIT Licensed