Skip to main content
100%

activity 6

✓ Published0🌍 Public
SSai Sujan
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

This example demonstrates how to set up a minimal VizHub app that loads D3 from a CDN and uses ES6 modules for local code. It shows a simple webpage with the text "Hello VizHub!" displayed prominently, centered via CSS in a div. The code uses `import { select } from 'd3'` to manipulate the DOM and `import { message } from './myMessage'` to bring in a local string constant. The rendering approach is straightforward text content set with `select('#message').text(message)`, with no data source involved.

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