Skip to main content
100%

Tutorial-1Activity-6

✓ Published1🌍 Public
Vvaishnavi6gan@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This example demonstrates how to load D3 from a CDN, use ES6 module imports for both external libraries and local files, and dynamically update the DOM with D3 selections. The code imports the `select` function from D3 and a custom `message` constant from a local module, then sets the text of a centered HTML element. It also defines a number and a regular expression as part of the script. The visualization renders a simple text message using D3’s selection API, with styling controlled by an external CSS file.

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