Skip to main content
100%

Assignment 2 tutorial

✓ Published0🌍 Public
Hhkodiripaka15@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024

This example demonstrates how to set up a minimal VizHub project using D3 v5 and ES6 modules. It loads D3 from a CDN via UNPKG, imports the `select` function from the `d3` module, and imports a local `message` variable from a custom ES6 module. The code uses `select('#message')` to update the text content of a div element, and includes a CSS file for styling. The example highlights basic module import patterns and D3 selection methods.

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