act_6_2010
✓ Published1🌍 Public
This example presents a bar chart that highlights individual bars on mouse hover. The visualization renders categorical data on the x-axis and a numerical scale on the y-axis, using a muted gray for non-hovered bars and black for the bar under the cursor. Built with D3 scales (`scaleBand`, `scaleLinear`), it leverages the `@curran/responsive-axes` library for axis rendering. Hover interactions are managed via `mouseenter` and `mouseleave` events, updating the `hoveredDatum` state through `setState`.
AI-generated descriptionChallenge
- Add this interaction to a bar chart or other visualization that you have created
MIT Licensed