Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
SShalin Shah
Last edited Feb 24, 2021
Created on Feb 24, 2021
Forked from Hello VizHub

This example demonstrates how to load external libraries and organize code in a VizHub project. It uses D3.js version 5, loaded via UNPKG, to select an HTML element with id “message” and set its text content. The text string “Hello VizHub!” comes from a local ES6 module, myMessage.js, imported using the `import` syntax. The visualization renders in an SVG container with a fixed width and height, while the primary output is a large, centered text message styled through CSS, showcasing modular code structure and D3’s selection API.

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