Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

8b7e27c130c84e0aa322bf709c59cc6b

Activity6_Task2

0 stars2🌍 Public
Rrishithagovini99@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity 6

This example demonstrates a minimal D3.js visualization that renders a static text message centered on a webpage. The code imports the `select` function from D3 to target the HTML element with the id `message`, then sets its text content using a string imported from a local ES6 module, `myMessage.js`. The styling is handled entirely through an external CSS file, which sets the font size and alignment. The visualization relies on D3 v5 loaded via UNPKG, and the rendering approach is a simple DOM text update rather than a graphical chart.

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.