Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Fork of Hello VizHub

0 stars0🌍 Public
Ssirusxcoder
Last edited Mar 10, 2024
Created on Mar 10, 2024
Forked from Hello VizHub

This example demonstrates the basic integration of D3.js and ES6 modules in a VizHub project, showing how to import local modules and D3 APIs to manipulate the DOM. It displays a static message, “Hello VizHub!”, centered on the page using the `select` function from D3 v5 to set the text content of a `div`. The code imports a string from a local `myMessage.js` module and uses it via `select('#message').text(message)`. Styling is applied through a linked `styles.css` file. No data is loaded or visualized; the focus is purely on module syntax and minimal DOM interaction.

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