Skip to main content
100%

act_6_2010

✓ Published1🌍 Public
Hhlmn4936@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024

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 description

Challenge

  • Add this interaction to a bar chart or other visualization that you have created
MIT Licensed

Similar vizzes