Skip to content

Fix tooltip position on PieChart Doughnut & PieChart#1936

Open
ezeqduarte wants to merge 1 commit intoswimlane:masterfrom
ezeqduarte:fix/tooltip-position-doughnut-piechart
Open

Fix tooltip position on PieChart Doughnut & PieChart#1936
ezeqduarte wants to merge 1 commit intoswimlane:masterfrom
ezeqduarte:fix/tooltip-position-doughnut-piechart

Conversation

@ezeqduarte
Copy link
Copy Markdown

@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.

1 participant