Skip to main content
Public

Share visualization

Loading preview…

Activity 6_Task 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

Activity 6_Task 1

0
SSai Gottumukkala
Last edited Apr 3, 2025
Created on Apr 1, 2025
Forked from Hello VizHub

This example shows a horizontal bar chart of population estimates for 30 countries in 2020, sorted alphabetically by country name. React components render the SVG visualization, while D3 v5 utilities handle data loading with `d3.csv`, linear scaling with `scaleLinear` for the x-axis, and band scaling with `scaleBand` for the y-axis categories. The code formats tick labels using `d3.format`, and bars include native SVG `<title>` tooltips. Data comes from a remote CSV file, with population values multiplied by 1000 during preprocessing.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed