Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart with Basic Hover

Public visualization

Bar Chart with Basic Hover

0 stars1🌍 Public
DDonald Bagwell
Last edited Apr 14, 2024
Created on Apr 14, 2024

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 description

A 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

Comments

Sign in to join the discussion.

MIT Licensed