Skip to main content
Public

Share visualization

Loading preview…

Fork of Hello VizHub

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 Hello VizHub

0
CCrystal Hsu
Last edited Sep 16, 2023
Created on Sep 16, 2023
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup within the VizHub environment, displaying the text “Hello VizHub!” centered on the page. The code imports the `select` function from the D3 v5 library via UNPKG and a custom local ES6 module. It uses `select('#message').text(message)` to set the content of a div element, with styling applied through an external CSS file. The example highlights how to combine CDN-hosted libraries, local modules, and D3 selections in a simple, self-contained visualization template.

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