Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Activity6_question1.2

0 stars0Public
Ddineshreddy.ravula@gmail.com
Last edited Apr 5, 2024
Created on Apr 5, 2024

This chart displays the 2010 population estimates for 20 countries as a horizontal bar chart, with countries sorted along the y-axis and population magnitudes along the x-axis. The visualization is built using React and D3 v5, with SVG rendering. It employs `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. A tooltip, implemented via an SVG `<title>` element, reveals the precise formatted population value for each bar. The data is loaded asynchronously from a CSV file using D3's `csv` function, and the x-axis labels are formatted using D3's `format` utility.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed