Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Activity6_TAsk3

Public visualization

Fork of Activity6_TAsk3

0 stars1๐ŸŒ Public
Aaschowdary.shashi@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Activity6_TAsk3

This example demonstrates how to combine D3.js with ES6 modules in a minimal VizHub setup. It uses the D3 `select` function to target a `#message` div and update its text content with a string exported from a local module. The page loads D3 from UNPKG, while the main script imports both D3 utilities and a custom `message` function from a separate JavaScript file. The rendering approach is straightforward DOM manipulation, with a CSS stylesheet controlling the text alignment and size.

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