🌍 Public
Viewing a saved revision (read-only)
a776489fc09943ba88f253b2ce388da1
React & D3 Vibecoding Starter
This example shows an interactive bar chart of letter frequencies from a CSV file, rendered in React with D3.js. The visualization updates responsively to window resizing via ResizeObserver and allows hover to change bar color and click to select or deselect bars. The code demonstrates a modular architecture where React manages state and component lifecycle, while D3 handles SVG rendering, scales, and axes through its `scaleBand`, `scaleLinear`, and `axisBottom`/`axisLeft` APIs.
AI-generated descriptionReact & D3 Demo
A simple demonstration of React and D3 working together to create responsive visualizations.
This demo shows:
- Using React for component management
- Using D3 for SVG manipulation
- Making visualizations responsive to window size
- Simple animation effects on hover
Built with React and D3.