Skip to main content
Public

Share visualization

Loading preview…

Activity6_Question1.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

Activity6_Question1.1

0
Ddandudivya98@gmail.com
Last edited Apr 5, 2024
Created on Apr 5, 2024

A horizontal bar chart displays the populations of ten countries in the year 2000, with countries listed on the y-axis and population values on the x-axis. The visualization uses React to render SVG elements, with D3 v5 providing the `scaleBand`, `scaleLinear`, and `max` functions for chart construction. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, and each bar shows a hover tooltip with the formatted population count. The bottom axis labels use D3's `format` to convert values from billions to abbreviated strings.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed