Skip to main content
100%

Fork of Hello VizHub

✓ Published1🌍 Public
AAshrith Kudidhi
Last edited Jul 3, 2022
Created on Jul 3, 2022
Forked from Hello VizHub

This example demonstrates the minimal structure of a VizHub project, showing how D3.js and local ES6 modules interact within a simple web page. It displays the text "Hello VizHub!" centered on the screen, using a D3 selection to set the content of an HTML `div` element. The page loads D3 v5 from the UNPKG CDN in `index.html`, while `index.js` imports the `select` function from D3 and a custom `message` string from a local module. The accompanying `styles.css` uses CSS to format the message 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