Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of pepe

Public visualization

Viewing a saved revision (read-only)

51685e71bae3434da8c310b3083777b6

Fork of pepe

0 stars0🌍 Public
Aarache1975
Last edited Feb 14, 2022
Created on Feb 13, 2022
Forked from pepe

This example demonstrates the fundamental workflow of VizHub by displaying a simple text message in the browser. It shows how to import D3 modules using ES6 syntax and how to load additional functionality from a local JavaScript file. The code uses D3 v5, specifically the `select` function, to target a div element by its ID and set its text content. The message originates from a separate ES6 module, while styling is applied through an external CSS file. All assets are loaded via a CDN link for D3 and a local bundle script.

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.