Fix tooltip position on PieChart Doughnut & PieChart #1936
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? Issue described in #1483
Current Behavior: The tooltip position is incorrect on the PieChart (doughnut) when using a custom tooltip template. It is currently positioned near the color's active area, resulting in an unexpected display.
What is the new behavior?
New Behavior: This pull request aims to fix the tooltip positioning issue on the PieChart (doughnut) by ensuring that the tooltip is correctly placed near the drawn chart.
Does this PR introduce a breaking change? (check one with "x")
Additional Context:
Context:
The issue has been identified and reported in the following context:
Issue Description: The tooltip position is strange on PieChart (doughnut) with a custom tooltip template. When clicking on a color in the chart, the tooltip takes the position of the square that encloses the SVG, not the position of the drawn chart. This creates a misaligned view that is not expected.
Expected Behavior:
The expected behavior is to move the tooltip near the color's active area.
Note to Reviewers:
Please review the proposed changes to address the tooltip positioning issue on the PieChart (doughnut) with a custom tooltip template. Ensure that the fix aligns the tooltip correctly with the drawn chart and resolves the reported misalignment.
Thank you for your attention to this matter.