Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task 2

Public visualization

Viewing a saved revision (read-only)

78e9715f348a4f0bac542777c745b5c9

Activity6_Task 2

0 stars1🌍 Public
Vvikramkotlo9@gmail.com
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup that loads the library via UNPKG and uses ES6 modules to display a static message. It shows how `import { select } from 'd3'` manipulates the DOM by setting the text of a `#message` div, while a separate local module (`myMessage.js`) exports the string content. The page also imports a stylesheet to center and scale the text with a 12em font size. The visualization itself contains no data or interactive elements.

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.