Activity6_Task3
✓ Published0🌍 Public
This example demonstrates how to build a visualization with D3 v5 and ES6 modules in VizHub. It loads D3 via UNPKG and uses `import { select } from 'd3'` to manipulate the DOM, setting the text content of a `div` element via `select('#message').text(message)`. A local ES6 module (`myMessage.js`) exports a string that is displayed. The example also includes a CSS stylesheet for layout, showing a basic template for combining external libraries, modular JavaScript, and styling in a single 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