🌍 Public
Viewing a saved revision (read-only)
79e985687b434903a9a6272d9c03f9ea
ice - 6
This example shows a simple bar chart of letter frequencies, with clickable bars that highlight the selected letter while dimming others. The chart is built with D3 v7 inside a React component, using `scaleBand` and `scaleLinear` for positioning, `axisBottom` and `axisLeft` for axes, and SVG `rect` elements for bars. Data comes from a local CSV file loaded via `d3.csv`. A `ResizeObserver` in `useDimensions` tracks the container size, and transitions animate bar color and opacity on selection.
AI-generated description