Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

assign2-3

Public visualization

assign2-3

0 stars0🌍 Public
Ppardha1411
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This example demonstrates a minimal D3.js application that renders a text message to the page. It shows how to import functions from the D3 library and from local ES6 modules, using `d3.select` to target a div element and set its text content. The message originates from a separate JavaScript file, while CSS styles center the text and enlarge it to 12em. D3 v5 is loaded via UNPKG, and the code follows a modular structure with separate index and message 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.

Comments

Sign in to join the discussion.

MIT Licensed