Skip to main content
Public

Share visualization

Loading preview…

Activity6_Question1.2

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

Activity6_Question1.2

0
Mmohanalaharic@gmail.com
Last edited Oct 30, 2025
Created on Oct 30, 2025
Forked from Hello VizHub

This example displays a horizontal bar chart ranking 20 countries by their 2010 population, using data from a CSV file loaded via d3.csv. It renders bars as SVG rectangles inside a React component, with d3.scaleBand mapping country names to y-axis positions and d3.scaleLinear mapping population values to bar widths. The chart includes formatted axis ticks via d3.format, a bottom axis label, and tooltips showing each bar’s value through SVG <title> elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed