Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Intro to JS: Cars Report

Public visualization

Viewing a saved revision (read-only)

5e50285ff90d44aaabaa9da4771ce610

Intro to JS: Cars Report

0 stars0🌍 Public
AAndy Davies
Last edited Oct 12, 2022
Created on Oct 11, 2022
Forked from Hello VizHub

This example demonstrates how to build a simple report that displays a static message on a webpage using D3.js and native JavaScript. It shows a basic integration where a string is rendered into a designated HTML element, styled with CSS. The code imports D3 via UNPKG and illustrates the use of local ES6 modules, though the final display relies on `document.getElementById` to set text content. The visualization serves as an introductory template for structuring a VizHub project with separate `index.js`, `styles.css`, and module files.

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. -->