Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Hello

Public visualization

Fork of Fork of Hello

0 stars0🌍 Public
BBasharAlFattal
Last edited Feb 14, 2023
Created on Feb 14, 2023

This example demonstrates a minimal D3.js setup that renders a personalized greeting message centered on the page. It uses D3’s `select` API from the `d3` module to target the `#message` div and set its text content via the `.text()` method. The message string comes from a local ES6 module (`myMessage.js`), while styling is applied through an external CSS file. The visualization highlights how to combine D3, local imports, and CSS within a simple web page.

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