Skip to main content
Public

Share visualization

Loading preview…

Activity6_Population

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_Population

1
Aamireddy.sw@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Activity 6

A horizontal bar chart displays the populations of ten countries in 2020, sorted by country name. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering SVG `<rect>` elements as bars. The code loads CSV data from a GitHub repository, formats tick labels with `d3.format` (converting billions to "B" suffix), and includes native SVG `<title>` tooltips. Axis components are custom React functions that generate tick lines and text labels.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed