Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how D3.js can initialize a simple text display within a web page, showing a static greeting message. The code loads D3 v5 from a CDN and uses the `select` API to target an HTML element by its ID, then sets its text content with the `text` method. It also showcases the use of ES6 modules by importing a string constant from a separate local file, which is then rendered through the D3 selection. The rendering approach relies on a minimal HTML structure with a single div, styled via CSS.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed