🌍 Public
Viewing a saved revision (read-only)
d46a31b8a4764059bfb8a724d5deef99
Bar Chart with Basic Hover
This bar chart displays the top 10 countries by population using data from the UN Population Estimates 2024. It highlights the currently hovered bar in black while dimming others to gray, using D3's `mouseenter` and `mouseleave` events with a state management system. The chart employs `scaleLinear`, `scaleBand`, and `axisLeft` from D3, with responsive axes from `@curran/responsive-axes` and an inner rectangle fill for the plotting area.
AI-generated descriptionChallenge
- Add this interaction to a bar chart or other visualization that you have created