Skip to content

bugfix: tooltip content placement#1967

Open
Algoritm211 wants to merge 1 commit intoswimlane:masterfrom
Algoritm211:bugfix/ngx-chart-content-left-position
Open

bugfix: tooltip content placement#1967
Algoritm211 wants to merge 1 commit intoswimlane:masterfrom
Algoritm211:bugfix/ngx-chart-content-left-position

Conversation

@Algoritm211
Copy link
Copy Markdown

@Algoritm211 Algoritm211 commented Jul 9, 2024

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
Initial bug - #1640 . Unfortunately, now when using a custom tooltipTemplate in a vertical bar chart, the left most bar's tooltip is not calculated correctly and can be clipped based on template content.
Screenshot 2024-07-09 at 17 55 15

What is the new behavior?
This is a solution for #1640. Now tooltip's content won't be outside the screen and will be always in viewport. The tooltip position is automatically adjusted for maximum visibility aligning with left corner

Screenshot 2024-07-09 at 17 56 47

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@Algoritm211 Algoritm211 force-pushed the bugfix/ngx-chart-content-left-position branch from eccebde to 3a1e549 Compare July 10, 2024 06:15
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