Fork of Fork of Hello VizHub
✓ Published1🌍 Public
This example demonstrates how to create a simple text display using D3.js within the VizHub environment. It uses the `select` function from D3 to target a DOM element with the ID "message" and sets its content to the text "Hello VizHub!". The text message is imported from a local ES6 module via the `import { message } from './myMessage'` statement, showcasing modular JavaScript. The page loads D3 version 5.16.0 directly from the UNPKG CDN. Custom styling is applied through a linked CSS file, which centers the message and sets its font size to 12em. This example illustrates the basic workflow of combining external libraries, local modules, and custom styles in a data visualization project.
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