Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Viewing a saved revision (read-only)

cee947d1d5a243b7a367a500fae50494

Fork of Hello VizHub

0 stars0🌍 Public
PPiotr Paszek
Last edited May 29, 2021
Created on May 29, 2021
Forked from Hello VizHub

This example demonstrates how to use VizHub to combine D3.js v5 with local ES6 modules. It renders two predefined SVG shapes and an icon from the `<defs>` section using `<use>` elements, while a D3 `select` call updates the text of a div with 'Hello VizHub!'. The code imports `select` from `d3` directly and a message from a separate local module, showcasing modular code organization. SVG rendering is handled natively in the markup, with styles defined in an external CSS 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.