Skip to main content
100%

Fork of Hello Pratik

✓ Published0🌍 Public
PPratik Karna
Last edited Sep 1, 2022
Created on Sep 1, 2022
Forked from Hello VizHub

This example demonstrates how to combine D3.js with local ES6 modules in a VizHub project. It uses `d3.select` to target a `div` element by its ID and sets its text content to a message imported from a separate `myMessage.js` module. The page loads D3 v5 from UNPKG and relies on a bundled JavaScript file. Custom styling centers the message with a large font size. The visualization shows a simple text output rather than data-driven graphics, highlighting modular code organization.

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