Skip to content

fix(ui/trend): place the hover readout at the pointer - #27

Merged
mrcsin merged 1 commit into
masterfrom
chart-hover-popup
Nov 17, 2026
Merged

mrcsin merged 1 commit into
masterfrom
chart-hover-popup

Conversation

@mrcsin

@mrcsin mrcsin commented Nov 17, 2026

Copy link
Copy Markdown
Member

Problem

The trend's hover readout sat at the top of the data area, beside the hover line. A signal near the axis maximum hid under it, and the operator had no way to move it away.

Change

  • TrendCursorOverlay.ShowAt takes the pointer's Y, and the view records it on every move. The box sits PointerClearanceX = 16 px right of and PointerClearanceY = 20 px below the pointer's hot spot, which clears the arrow pointer (about 12 × 19 px).
  • The box flips left of the pointer at the view's right edge, and above it at the data area's bottom. It never goes above the data area's top.
  • The operator picked this over two alternatives, after rendered mockups: the box in the half opposite the hovered value, and the readout in the X-axis title strip.
  • overview.md, "The readout": the new placement.

Verification

  • dotnet build -c Release: 0 warnings. dotnet test: 1136 passed on 4 runs with --blame-hang. The new test NearTheBottomTheReadoutFlipsAboveThePointerAndStaysInTheDataArea and the updated placement and right-edge tests cover the change. The readout text-fit test now includes the 16 px clearance.
  • dotnet format --verify-no-changes and terse: exit 0.
  • The operator tried it in the running app.
  • Known: a rare full-suite hang, 2 in about 30 local runs, which also occurs on master before this change. Its cause is not yet identified; a CI hang detector follows in a separate PR.
Per-task commits before collapse
a5be06f fix(ui/trend): place the hover readout at the pointer

🤖 Generated with Claude Code

The trend's hover readout sat at the top of the data area beside the
hover line, so a signal near the axis maximum hid under it, and the
operator could not move it away.

The box now follows the pointer: 16 px right of and 20 px below the
hot spot, clear of the arrow pointer, flipped left at the view's right
edge and above the pointer at the data area's bottom. Moving the mouse
into empty space moves the box off the data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mrcsin
mrcsin marked this pull request as ready for review November 17, 2026 09:58
@mrcsin
mrcsin merged commit d2f7677 into master Nov 17, 2026
1 check passed
@mrcsin
mrcsin deleted the chart-hover-popup branch November 17, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant