Skip to main content
Public

Share visualization

Loading preview…

Activity6 Question 1.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 Question 1.2

0
Kkoushikkumarreddykoorapati@my.unt.edu
Last edited Apr 5, 2025
Created on Apr 5, 2025

This example shows the populations of 30 countries in 2010 using a horizontal bar chart. The chart uses React functional components with D3 scales to map country names to the y-axis and population values to the x-axis. Bars are rendered as SVG rectangles with hover effects, and axis labels are formatted using D3’s `format` function to display values in billions. Data is loaded asynchronously from a CSV file using D3’s `csv` method. The code includes custom axis components for the bottom and left sides.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed