Skip to content

#4152 Changed gantt chart tooltip location#4160

Open
AbhinavGonthina wants to merge 1 commit intofeature/gantt-chart-improvementsfrom
#4152-realign-tooltips
Open

#4152 Changed gantt chart tooltip location#4160
AbhinavGonthina wants to merge 1 commit intofeature/gantt-chart-improvementsfrom
#4152-realign-tooltips

Conversation

@AbhinavGonthina
Copy link
Copy Markdown
Contributor

@AbhinavGonthina AbhinavGonthina commented Apr 16, 2026

Changes

Updated tooltip positioning on the Gantt chart so it follows where the user hovers instead of appearing in a fixed spot.

It now uses the mouse coordinates from the hover event and places the tooltip near the cursor.

Notes

I added an x coordinate prop into GanttTooltipProps such that the tooltip now is close to the user's cursor when they hover over a gantt chart element. I also changed the y coordinate calculation and variable declarations for better code readability and visibility.

Also, it seems that gantt elements which have subelements have the tooltip positions where the start of the sub element which is being hovered over is, but this is not a huge difference than what may be expected in my opinion.

Screenshots

Gantt.Chart.Tooltips.mp4

To Do

Change positioning of tooltip if needed.

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4152

…tip appears near mouse (also edited y coordinate calculation for better readability)
@AbhinavGonthina AbhinavGonthina marked this pull request as ready for review April 16, 2026 06:20
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