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
Aayeshamanzoor111798@gmail.com
Last edited Oct 25, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of the populations of the top ten countries in the year 2000. The visualization uses D3 v5 scale functions, specifically `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, all rendered as SVG via React components. Data is loaded from a remote CSV using D3's `csv` function and formatted with the `format` API for axis labels. The chart includes custom tick marks and axis labels, with interaction provided through SVG `<title>` tooltips.

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