chart/docs
Chris Amow 22a638cf73 Label the axis past the last bar, and fix the Yahoo bars that exposed
Trendlines project into the whitespace beyond the newest candle, but the time
axis stopped there, so a converging pair could be seen without knowing when it
converges. Lightweight Charts only labels times present on its scale, so the
chart now carries whitespace points past the last bar: no value, nothing drawn,
but the axis has something to label and timeToCoordinate answers out there.

Future times repeat the most recent bar interval, which is what timeAtIndex
already does for the projections themselves. That drifts across the daily halt
and the weekend; agreeing with the projected line matters more than abstract
accuracy, and session-accurate projection needs server-side session rules the
client does not have.

Two bugs surfaced while measuring it. Padding meant to be five bars measured as
sixty-seven, because the interval came from the gap between the final two bars;
barInterval now takes a median over recent bars and ignores a ragged tail.

And that gap was two seconds on a one-minute chart because Yahoo stamps its
in-progress candle with the time of the request, while the poller emitted
anything newer than the last thing it sent. Every poll therefore appended a new
"1m" bar seconds after the previous one, interleaved with the real ones — live
in production, which is still on Yahoo. Timestamps are bucketed on parse, and
the final candle is emitted unclosed so it revises the current minute rather
than entering the aggregator and adding its volume to every higher timeframe
again on each poll. Verified live: eight consecutive bars, all aligned, all
sixty seconds apart.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 23:55:27 -05:00
..
archived Stop the plan's opening from describing a greenfield app 2026-08-11 16:26:36 -05:00
async_refactor.md Split the plan from the log of what actually happened 2026-08-11 16:29:47 -05:00
feature_undo.md better default names 2026-08-11 14:36:58 -05:00
implementation.md Label the axis past the last bar, and fix the Yahoo bars that exposed 2026-08-11 23:55:27 -05:00
mobile_enhance.md symbol improvements 2026-08-11 19:51:39 -05:00
multi_user.md Track multi-user as a direction, not a project 2026-08-11 16:21:25 -05:00
NEXT_STEPS.md Split the plan from the log of what actually happened 2026-08-11 16:29:47 -05:00
plan.md Treat the plan and the log as maintenance, not as a build 2026-08-11 16:32:43 -05:00