Skip to content

About

Wealth inequality visualization

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

57 Commits

Folders and files

Repository files navigation

fork of https://github.com/Evolving-Thoughts/1-pixel-wealth

Pixel Wealth

A scrollytelling web experience that visualizes wealth at true scale.

The page combines static markup, CSS, and vanilla JavaScript with story/content data from JSON files.

Features

  • True-scale wealth bars with segmented rendering for very large heights
  • Dynamic story rendering from data/story.json
  • Dynamic billionaire data loading from data/billionaires.json
  • German locale scaffold under de/
  • Optional local development server and data refresh script

Project Structure

  • index.html: Main page shell
  • main.js: Rendering, data loading, comparisons, counters, progress bar, and ticker logic
  • main.css: Layout and visual styling
  • data/story.json: Story narrative and comparison/cause definitions
  • data/billionaires.json: Wealth data used for the bars and totals
  • de/index.html: German entry page
  • de/i18n_de.js: German translation dictionary
  • i18n.js: Locale page translation loader
  • scripts/fetch-billionaires.mjs: Script to refresh billionaire data

Requirements

  • Node.js 18+ recommended
  • npm

Local Development

  1. Install dependencies:
npm install
  1. Start a local web server:
npm run serve
  1. Open:

Update Wealth Data

Run:

npm run update:wealth

This updates data/billionaires.json from the source configured in scripts/fetch-billionaires.mjs.

i18n Notes

  • The default content is sourced from data/story.json.
  • German overrides live in de/i18n_de.js.
  • Missing keys in German gracefully fall back to the default text from the source content.

About

Wealth inequality visualization

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages