Fork of demo
✓ Published0🌍 Public
This demo shows an interactive bar chart of letter frequencies from a CSV dataset, with clickable bars that highlight the selected letter while dimming others. Built with React and D3 v7, the visualization uses `d3.scaleBand` and `d3.scaleLinear` to position bars, `d3.axisBottom` and `d3.axisLeft` for labeled axes with gridlines, and a ResizeObserver to make the SVG responsive to container size changes. A custom `useDimensions` hook feeds updated dimensions back into the rendering pipeline, while D3 selections manage bar transitions for hover and selection states.
AI-generated descriptionMIT Licensed