Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Viewing a saved revision (read-only)

2fa774ad3af5484787cfc15d3b74d0ec

Fork of Hello VizHub

0 stars0🌍 Public
HHENRY
Last edited Dec 16, 2022
Created on Dec 16, 2022
Forked from Hello VizHub

This example demonstrates how to build a minimal D3-powered web page using ES6 modules. It displays a static text message and a car model name by importing data and functions from separate local JavaScript files. The code loads D3 v5 from UNPKG in the HTML file and uses the `select` API from the `d3` import to update the DOM. It also parses a hardcoded JSON string from a local module to access the first car’s model attribute.

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.