Cars Report
✓ Published0🌍 Public
This example shows a simple report of car data, displaying a single formatted line of text about one car from a small dataset. It loads D3 v5 from UNPKG and uses an ES6 module to asynchronously fetch car data with a Promise after a simulated delay. The page initially shows a loading message, then updates the text content of an HTML element using `document.getElementById` to display the selected car’s year, make, model, and price. The code demonstrates importing local modules and using D3 via a script tag.
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