Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ddstumpinsight
Last edited Sep 15, 2021
Created on Sep 15, 2021
Forked from Hello VizHub

This example shows a minimal D3.js visualization that displays the message "Hello VizHub!" in large, centered text on a web page. It demonstrates how to load D3 from a CDN via UNPKG, import the `select` function from the `d3` module, and import a local ES6 module (`myMessage.js`) that exports the displayed text. The code sets the text content of the `#message` div element using `select().text()`, with styling applied through an external `styles.css` file. The data source is a static string constant from the local module, and rendering is pure DOM manipulation without canvas or SVG.

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