Skip to main content
Public

Share visualization

Loading preview…

Fork of barGraph TD1 correction

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

Fork of barGraph TD1 correction

0
GGinnWG
Last edited Dec 2, 2022
Created on Oct 3, 2022
Forked from barGraph

This visualization shows global population rankings for 2022 using a bar chart and scatter plot overlay, with buttons to reorder the data by ascending or descending population. It uses D3 v5 to load a CSV file and render SVG elements, with transitions animating the bars and circles when the sort order changes. The code relies on d3.scaleBand, d3.scaleLinear, axis generators, and rect/circle selections, while a styled tooltip appears on mouseover via the div.tooltip element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed