Skip to main content
100%

Activity 6

✓ Published0🌍 Public
Mmounikakatipally995@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This example demonstrates how to integrate D3.js with ES6 modules in a minimal VizHub project. It selects a div element and sets its text to "Hello VizHub!" using the `select` function imported from D3. The code also imports a local ES6 module (`myMessage.js`) to supply the message string, and includes a global D3 script loaded via UNPKG alongside a local stylesheet. The rendering approach is straightforward DOM manipulation, with no external data source or complex visualizations.

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