🌍 Public
Viewing a saved revision (read-only)
6a1a4c3ab6634a61a3a6f25658625003
Bar Chart with Basic Hover
This bar chart displays the top 10 most populous countries as of January 2024, with bar length representing population in thousands. It uses d3.scaleBand and d3.scaleLinear for positioning, while mouseenter and mouseleave events trigger state updates that dim non-hovered bars to gray. The visualization loads population data from the @curran/un-population-estimates-2024 package and uses @drbagwell/responsive-viz-axes for responsive sizing and axis rendering.
AI-generated descriptionA bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.
Challenge
- Fork this viz and modify it to show your own data