Skip to main content
100%

JS practice

✓ Published0🌍 Public
CCameron Wehr
Last edited Aug 30, 2023
Created on Aug 30, 2023
Forked from Hello VizHub

This example demonstrates the use of JavaScript and D3.js to create an SVG-based visualization, rendering a black rectangle within a 960x500 pixel canvas. The code loads D3 via UNPKG and uses the `select` function to set the text content of a message div, while also importing a local ES6 module. It combines direct SVG manipulation through the Document API with D3’s utility functions.

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