Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global Markets — Live Performance Map

Interactive 3D globe showing real-time stock market performance for 32 countries. Color-coded by daily change (green = gaining, red = declining). Hover any country for index price, % change, and top 3 reasons driving performance.

Features

  • Interactive globe — drag to rotate, scroll to zoom, double-click to zoom in
  • Region presets — one-click views for Americas, Europe, Asia, Africa
  • Live data — fetches real-time quotes from finance API, auto-refreshes every hour
  • Hover tooltips — country flag, index name, price, daily change, and top 3 reasons (bullish or bearish)
  • 32 indices tracked — S&P 500, FTSE 100, Nikkei 225, DAX, CAC 40, SSE Composite, Hang Seng, NIFTY 50, and 24 more

Tech Stack

  • Frontend: D3.js (orthographic projection + TopoJSON), vanilla JS, CSS
  • Backend: Python FastAPI — fetches quotes via finance API, serves /api/market-data
  • Data: Real-time quotes for 32 global stock indices

Quick Start

pip install fastapi uvicorn
python api_server.py
# Backend runs on http://localhost:8000

# Serve frontend
npx serve . -l 3000
# Open http://localhost:3000

File Structure

├── index.html        # Main page
├── app.js            # D3 globe, interactions, tooltips, live data fetch
├── style.css         # Component styles
├── base.css          # Dark theme base
├── api_server.py     # FastAPI backend (hourly data refresh)
└── README.md

Screenshot

Global Markets Map

Dark-themed 3D globe with red/green country shading by daily stock performance. Hover for detailed tooltips with price data and market analysis.

About

Interactive 3D globe showing real-time stock market performance for 32 countries. D3.js + FastAPI.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages