Skip to main content
100%

Activity 6

✓ Published1🌍 Public
Aanish6005@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This example demonstrates how to combine D3.js with ES6 modules in a VizHub project. It uses the D3 `select` function to target a div element and update its text content with a message imported from a local module. The code imports `selection` methods from the D3 library via UNPKG and uses a custom `myMessage.js` module to supply the string. The page renders a simple, centered text display styled with CSS, showing basic data-binding and modular JavaScript integration without any external data source.

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