Skip to main content
100%

T8 Tut1

✓ Published1🌍 Public
Aaadesh.pranesh@gmail.com
Last edited Apr 18, 2024
Created on Apr 18, 2024

This example demonstrates a basic D3.js integration within a VizHub project, rendering the text "Hello VizHub!" into a centered HTML div. It shows how to load D3 v5 from a CDN, import the `select` function from the D3 library, and use a local ES6 module to supply the message string. The code also defines a regular expression and a numeric constant, though these are not used for any visual output. The rendering approach is simple DOM manipulation via `select('#message').text()`, with styling applied through 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