How nicktodd/stock-portal works
Stock Portal is a browser-based Angular dashboard using generated—not real—market data. A user selects a stock and time range; the dashboard derives figures and chart series, then presents stock tiles, price and relative-performance charts, volume bars, and a watchlist. Prices update every two seconds, and the theme follows system preference unless the user saves a choice. The graph follows the shown bootstrap and component references; unsampled template details and deployment infrastructure are not mapped.
Main entry points: app.ts Dashboard state · delta.ts Change indicator · format.ts Number formatting · stock-tile.ts Stock tiles
Components 15
Dashboard
- Angular entry
src/main.ts - App config
src/app/app.config.ts - Dashboard state
src/app/app.ts
Market data
- Simulated market
src/app/market-data.ts
Stock views
- Range summaries
src/app/stock-view.ts - Stock tiles
src/app/stock-tile.ts - Watchlist table
src/app/watchlist.ts
Charts
- Line chart
src/app/charts/line-chart.ts - Volume chart
src/app/charts/bar-chart.ts - Tile sparkline
src/app/charts/sparkline.ts - Chart geometry
src/app/charts/chart-utils.ts
Display helpers
- Change indicator
src/app/delta.ts - Number formatting
src/app/format.ts
Other components
- Dashboard user
- Browser storage
Connections 20
- Dashboard user → Dashboard state: selects range and stock
README.md - Angular entry → Dashboard state: bootstraps
src/main.ts - Angular entry → App config: configures
src/main.ts - Dashboard state → Simulated market: reads live stocks
src/app/app.ts - Dashboard state → Range summaries: derives rows and volume
src/app/app.ts - Dashboard state → Stock tiles: renders
src/app/app.ts - Dashboard state → Watchlist table: renders
src/app/app.ts - Dashboard state → Line chart: renders charts
src/app/app.ts - Dashboard state → Volume chart: renders chart
src/app/app.ts - Dashboard state → Change indicator: renders indicator
src/app/app.ts - Dashboard state → Number formatting: formats display values
src/app/app.ts - Stock tiles → Tile sparkline: renders trend
src/app/stock-tile.ts - Stock tiles → Change indicator: renders change
src/app/stock-tile.ts - Watchlist table → Change indicator: renders change
src/app/watchlist.ts - Line chart → Chart geometry: uses chart geometry
src/app/charts/line-chart.ts - Volume chart → Chart geometry: uses chart geometry
src/app/charts/bar-chart.ts - Line chart → Number formatting: formats dates
src/app/charts/line-chart.ts - Range summaries → Number formatting: formats bar dates
src/app/stock-view.ts - Change indicator → Number formatting: formats percentages
src/app/delta.ts - Dashboard state → Browser storage: reads and saves theme
src/app/app.ts