Cars Report
✓ Published0🌍 Public
This example demonstrates how to build a minimal HTML page that loads D3 v5 from the unpkg CDN and displays a text message extracted from a local JSON dataset. The code imports the cars dataset from a local ES6 module, parses it with JSON.parse, and updates the DOM by setting the text content of a pre element to the first car's make property. It also includes a separate ES6 module for message export and basic CSS styling to center and enlarge the displayed text.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed