# XWUIGameEconomyDebug

An in-engine economy monitor that tracks currency flow: `IN`/`OUT`/`NET` gold counters (net colored green/red), an `inflation` percentage with a warning color ramp, an SVG mini line chart of `priceHistory`, and a log of the last five `transactions`. Use it to watch a game's sink/faucet balance at runtime; feed it `goldIn`, `goldOut`, `inflation`, `priceHistory`, and `transactions` via `updateData()`, and toggle the `showGraph`/`showInflation` sections via config.

## Basic Usage

Mounts the monitor on a healthy economy: `IN` outpaces `OUT` for a green `NET`, inflation sits at a safe 1.8%, the price chart climbs, and the recent-transaction log is filled.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A healthy economy with positive net gold flow, mild inflation, a rising price chart, and a recent transaction log.
```

## Deflationary Economy

A sink-heavy gold shortage where OUT exceeds IN, NET turns red, inflation goes negative, and the price chart slides downward.

```example
file: examples/DeflationaryEconomy.ts
html: examples/DeflationaryEconomy.html
title: Deflationary Economy
description: A sink-heavy economy with a red negative NET, -3.4% inflation, a falling price chart, and a repair/tax-heavy log.
```

## Live Market Feed

A button that calls updateData() to stream fresh gold flow, climbing inflation, a growing price chart, and new log entries into the monitor.

```example
file: examples/LiveMarketFeed.ts
html: examples/LiveMarketFeed.html
title: Live Market Feed
description: A "Tick market" button drives updateData() to push new flow numbers, rising inflation, and a growing transaction log.
```

```api
```
