Skip to main content
Public

Share visualization

Loading preview…

Untitled

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

Untitled

0
Ppengming0807
Last edited Oct 14, 2021
Created on Oct 14, 2021
Forked from Hello VizHub

This example demonstrates how to combine D3.js with ES6 modules in a VizHub project. It loads D3 from UNPKG and uses the `select` function to set the text content of an HTML element with the id “message.” The text itself comes from a separate local module, `myMessage.js`, which exports a string. The stylesheet centers this message and applies a large font size, resulting in a simple, visually prominent greeting.

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