Skip to main content
Public

Share visualization

Loading preview…

barGraph

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

barGraph

37
TTimothyMiage
Last edited Jan 3, 2024
Created on Sep 19, 2022
Forked from MIAGE base

This visualization displays the 2022 population of countries as a bar chart, with options to sort the bars in ascending or descending order. The chart also includes a scatter plot overlay with circles at the top of each bar, and a tooltip showing country and population details on hover. Built with D3 v5, the visualization uses `scaleBand`, `scaleLinear`, and `axisLeft`/`axisBottom` for axes, with `transition` animations when sorting. The data comes from a CSV file, and the SVG rendering includes interactive buttons for reordering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed