Skip to main content
Public

Share visualization

Loading preview…

activity6question-1

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

activity6question-1

0
Vvaishnavi6gan@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the populations of ten countries from the year 2000, with a green bar representing each country’s population in millions. The visualization uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` defining the y- and x-axes, respectively. Data is loaded from a remote CSV file using D3’s `csv` method, and axis labels are formatted using D3’s `format` function to abbreviate values (e.g., converting billions to "B"). Tooltips provide exact population values on hover via the SVG `title` element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed