🌍 Public
Viewing a saved revision (read-only)
7dc117c1f18a450b9624604d61a34ea2
Fork of Fork of Hello VizHub
This example displays the top ten happiest countries in plain HTML, ranked by overall score, with columns for rank, country, and score. It uses a static JavaScript array as its data source and dynamically populates a table by creating and appending `tr` elements to the `tbody` via `document.createElement` and `innerHTML`. The visualization is a straightforward tabular listing without any charting or mapping libraries, relying solely on standard DOM manipulation. It offers a clean, text-based view of the World Happiness Report rankings.
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.