Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Hello VizHub

Public visualization

Hello VizHub

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed