Skip to main content
100%

Activity 6_Task 1

✓ Published1🌍 Public
Ppraneeth.d555@gmail.com
Last edited Oct 17, 2024
Created on Oct 17, 2024
Forked from Activity 6

This example demonstrates how to load D3 via UNPKG and use ES6 `import` statements to bring in both D3 API functions and local modules. The code imports `select` from D3 and a custom `message` function from a local ES6 module, then uses `select('#message').text(message)` to display the text "Hello VizHub!" in the center of the page. A stylesheet styles the message with a large 12em font, and HTML includes the D3 library from a CDN before executing the bundled JavaScript.

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