Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
Bbellsamuel
Last edited Feb 15, 2021
Created on Feb 15, 2021
Forked from Hello VizHub

This example demonstrates how to set up a minimal D3.js project within the VizHub environment, showing a single text element that reads “Hello VizHub!”. It highlights the use of ES6 modules for importing both local code and external libraries. The code imports the `select` function from D3 v5 via UNPKG and uses it to set the text content of a `div` element based on a string exported from a separate local module. The HTML page loads D3 from a CDN and a bundled JavaScript file, while a local stylesheet provides basic styling.

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