Skip to main content
100%

JSImports

✓ Published0🌍 Public
PPatrick-Houlihan
Last edited Mar 5, 2022
Created on Mar 5, 2022
Forked from Hello VizHub

This example demonstrates how VizHub projects can load D3 from a CDN, import API functions from the D3 module, and use local ES6 modules for custom code. It displays the text "Hello VizHub!" in a centered message div using `select('#message').text()`. The project also defines a `Rectangle` class with a static asynchronous `load` method that logs to the console, and a separate `myMessage.js` module exporting the displayed string. The page uses minimal styling from `styles.css` with a large font size.

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