Skip to main content
100%

Activity6

✓ Published0🌍 Public
Ppjdhungana@gmail.com
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This example demonstrates how to use D3.js v5 within a VizHub project to display a custom message on a webpage. It shows a simple text rendering workflow, where the message "Hello VizHub!" is centered and styled using CSS. The code imports the `select` function from D3 and a local ES6 module exporting the message string. D3’s `select` method targets the `#message` div and sets its text content. The project also illustrates loading D3 from a CDN via UNPKG and bundling local ES6 modules.

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