Fork of React & D3 Vibecoding Starter
✓ Published0🌍 Public
This example shows an interactive bar chart of letter frequencies loaded from a CSV file. D3 v7 parses the data with `d3.csv`, while React manages the component state and a `ResizeObserver` tracks container dimensions. Clicking a bar toggles its highlight by updating React state, which re-renders the SVG with adjusted fill and opacity. Axes are created with `d3.axisBottom` and `d3.axisLeft`, and scales using `d3.scaleBand` and `d3.scaleLinear`.
AI-generated descriptionMIT Licensed