Skip to main content
100%

Fork of loading data

✓ Published0🌍 Public
Nnexus1058
Last edited Jan 23, 2021
Created on Jan 23, 2021
Forked from loading data

This example demonstrates a simple D3.js workflow for loading a text message into a web page. It shows how to import the `select` function from D3 and a local ES6 module (`myMessage.js`) that exports a string constant. The code uses `d3.select('#message').text()` to set the content of the specified div element, styled with centered, large text via CSS. The page loads D3 v5 from UNPKG, and the script runs in a bundled `bundle.js` file.

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