Skip to main content
100%

ICE-6 Bar Graph

✓ Published0🌍 Public
Nnavyasrimeka9@gmail.com
Last edited Mar 22, 2023
Created on Mar 22, 2023

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 description

A whole smiley face

MIT Licensed

Similar vizzes