Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tooltip position on PieChart Doughnut & PieChart #1936

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ezeqduarte
Copy link

@ezeqduarte ezeqduarte commented Jan 23, 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? 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")

  • Yes
  • No

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.

@ezeqduarte ezeqduarte changed the title Fix tooltip position on PieChart Doughnut && PieChart Fix tooltip position on PieChart Doughnut & PieChart Jan 23, 2024
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.

None yet

1 participant