Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart with Basic Hover

Public visualization

Viewing a saved revision (read-only)

4e091673ea6e43ea9e616918a4ed42cf

Bar Chart with Basic Hover

0 stars6🌍 Public
CCurran Kelleher
Last edited Oct 9, 2025
Created on Feb 14, 2024

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 description