Skip to main content
Public

Share visualization

Loading preview…

Activity 6 Tutorial 2

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

Activity 6 Tutorial 2

1
Ttallapanenisahithi@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example demonstrates the basic setup and modular structure of a VizHub project, showing how to import D3 functionality and local ES6 modules. The page displays a large, centered text message "Hello VizHub!" using D3's `select` to target a div and set its text content. It includes a stylesheet for formatting, loads D3 v5 from a CDN via UNPKG, and shows the use of regular expressions and a constant variable in JavaScript. The code serves as a minimal template for organizing D3-based visualizations with external dependencies and modular code structure.

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