Skip to content

Fix unreliable chart tooltips (#167)#177

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/chart-tooltip-reliability
Feb 19, 2026
Merged

Fix unreliable chart tooltips (#167)#177
erikdarlingdata merged 1 commit intodevfrom
feature/chart-tooltip-reliability

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Fixes chart tooltips being slow to appear or never showing
  • Root cause: tooltips used Euclidean pixel distance (50px radius), requiring the mouse to be very close to actual data point markers. With sparse time-series data (points every 15 mins), there are large gaps between markers where no tooltip appears
  • Fix: use X-axis (time) proximity as primary filter (80px horizontal threshold), Y-axis distance as tiebreaker for multi-series charts
  • Tooltips now appear reliably when hovering at any Y position near a data point's time — standard behavior for time-series charts
  • Added try-catch for robustness, reduced throttle from 50ms to 30ms

Test plan

  • Launch Dashboard, hover over any chart with data
  • Verify tooltips appear promptly and consistently
  • Verify tooltips show the correct series name, value, and time
  • Test with multi-series charts (e.g., CPU chart with SQL vs Other)
  • Verify tooltip disappears when leaving the chart area

🤖 Generated with Claude Code

Tooltips used Euclidean pixel distance requiring the mouse to be within
50px of a data point marker. With sparse time-series data (points every
15 mins), large gaps between markers made tooltips unreliable or absent.

Fix: use X-axis (time) proximity as primary filter (80px horizontal),
Y-axis distance as tiebreaker for multi-series charts. Tooltips now
appear reliably when hovering at any Y position near a data point's
time. Added try-catch for robustness, reduced throttle to 30ms.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 340ae0c into dev Feb 19, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/chart-tooltip-reliability branch February 19, 2026 23:23
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