Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
CChaitanya Ratan Sree
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example demonstrates the modular workflow of VizHub, showing how to combine D3.js with local ES6 modules to create a simple interactive page. The code loads D3 v5 from a CDN and uses `import { select } from 'd3'` to manipulate the DOM, setting the text of a `#message` div to display "Hello VizHub!" from the exported `message` variable in `myMessage.js`. The page also includes CSS styling for centered, large text. It illustrates the basic structure of a VizHub visualization project, including HTML, JavaScript, and stylesheet files.

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.
MIT Licensed

Similar vizzes