Skip to content

fix: chart hover finds the nearest point, so the live range shows its tooltip - #25

Closed
AmrMsCLL wants to merge 1 commit into
mainfrom
fix/live-chart-hover
Closed

AmrMsCLL wants to merge 1 commit into
mainfrom
fix/live-chart-hover

Conversation

@AmrMsCLL

@AmrMsCLL AmrMsCLL commented Nov 5, 2026

Copy link
Copy Markdown
Member

The live range showed no tooltip. Chart matched points with point.at === at, where at is the pointer's time rounded to the step. History points are aligned to their step; live frames are stamped with the millisecond they were sampled, so nothing matched.

The tooltip, the nearest-line highlight and the project breakdown now take the nearest point within half a step, and the pointer may reach half a step past the newest point.

Checks: tsc (web), oxlint, npm run build. Not tried in a browser.

… tooltip

The tooltip looked for a point exactly on the pointer's time rounded to the
step. History points sit on step boundaries, but live frames carry the
millisecond they were sampled, so none ever matched. It now takes the nearest
point within half a step, and the newest second no longer falls off the edge.
@AmrMsCLL

AmrMsCLL commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

Already on main through #27, which carries this change.

@AmrMsCLL AmrMsCLL closed this Nov 5, 2026
@AmrMsCLL
AmrMsCLL deleted the fix/live-chart-hover branch November 5, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s 11-50 changed lines, excluding lockfiles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant