Skip to main content
100%

Activity 6

✓ Published0🌍 Public
Aakshayvenishetty1437
Last edited Jul 5, 2023
Created on Jul 1, 2023
Forked from Hello VizHub

This example demonstrates a coordinate transformation applied to an image, converting its original aspect ratio to a square format while displaying it in an SVG. The code loads D3 via UNPKG, imports the `select` function from D3, and imports a local ES6 module that supplies the text message. The SVG contains an embedded base64-encoded JPEG image, which is rendered through a pattern definition. A separate HTML element displays the text "Hello VizHub!" using D3's `select` method, while CSS styles the message prominently.

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