Skip to main content
100%

activity 6

✓ Published1🌍 Public
Ssaikrishnabussa
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example demonstrates how D3.js can be used to update the text content of an HTML element. It imports the `select` function from D3 and a custom ES6 module, then applies the module’s exported message string to a div with the ID `message`. The visualization loads D3 v5 from a CDN via UNPKG and styles the text using CSS, resulting in a centered, large-font display of the message "Hello VizHub!".

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.
MIT Licensed

Similar vizzes