Skip to main content
100%

Hello VizHub

✓ Published1🌍 Public
GGlenn Henshaw
Last edited Sep 26, 2019
Created on Sep 26, 2019
Forked from Hello VizHub

This example displays a formatted list of five US cities sorted by population, rendered as text on a dark background using D3 v5 and custom ES6 modules. It imports and parses JSON data from `cities.js` and `person.js`, sorts the city objects by population with JavaScript’s `sort()` method, and maps them to a readable string using template literals. The page uses the Ubuntu font from Google Fonts, and the text content is injected into a `<pre>` element via `document.getElementById`. The code demonstrates loading data, sorting, and basic DOM manipulation within a VizHub project.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes