π Public
Activity6_population_question1
This example demonstrates a simple data visualization that displays a text message centered on a web page. It uses D3 v5 (loaded via UNPKG) and HTML/CSS to render the output, with the `select` API from D3 targeting the `#message` div to set its content. The code imports a local ES6 module (`myMessage.js`) to supply the displayed text and uses a regular expression and a constant variable to illustrate basic JavaScript functionality within the VizHub environment.
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
Comments
Sign in to join the discussion.