Fisrt JS program
✓ Published0🌍 Public
This example displays a single car brand name, "shangqi," centered on the page. It demonstrates loading D3 v5 via UNPKG, and using ES6 `import` statements for both the D3 library and a local module. The local module, `myMessage.js`, parses a hardcoded JSON array of car objects, and the main script extracts and displays the brand from the first object. The styling is handled with a CSS file that sets large, centered 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