Move the no-I/O, no-ImGui series helpers (resampleHistory, bucketBySeconds, sparklineSeries, chartSeries) out of market_tab.cpp into an inline header under data/ (mirroring data/portfolio.h) and cover them with a testMarketSeries() group in test_phase4.cpp (resample block averaging + partial blocks, window bucketing + guards, sparkline fallback, chart time-window filtering + live timestamp synthesis). market_tab now calls data::sparklineSeries/chartSeries. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
232 KiB
232 KiB