chart/static
Chris Amow 9008e9cd8e Show the trendline Side control only when it can do anything
Snapping now always lands an anchor on a bar extreme, and which extreme it is
decides the side — a high is resistance, a low is support. That left the Side
dropdown unable to affect the result: it was overridden on every drawn line.

It now appears only when "Snap to highs/lows" is off, the one case where there
is no extreme to infer from. With snapping on the row reads "Side auto" instead,
so the behaviour is stated rather than implied by a control that does nothing.
An "Auto" option in the dropdown would have been the same no-op wearing a label.

Verified in a browser both ways, and that the inference itself holds with the
dropdown left on its default: drawing above the candles yields resistance
snapped to the bar high, drawing below yields support snapped to the bar low.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 16:18:56 -05:00
..
app.js Add chart comments and turn Lines & levels into Drawings 2026-08-10 15:58:21 -05:00
chart.js Keep a pinned comment in place across a timeframe switch 2026-08-10 16:10:51 -05:00
index.html Show the trendline Side control only when it can do anything 2026-08-10 16:18:56 -05:00
style.css Show the trendline Side control only when it can do anything 2026-08-10 16:18:56 -05:00