Skip to content

Conversation

@hhjeee
Copy link
Contributor

@hhjeee hhjeee commented Feb 20, 2025

New Pull Request

Fixes #4720

This PR addresses an issue where the fixed option in the tooltip configuration for Pie/Donut charts was not working as expected. When tooltip: { fixed: { enabled: true } } option was set, the tooltip did not remain fixed in position.

Summary of Change

The problem was caused by the tooltip position being recalculated by thenonAxisChartsTooltips() function, which overwrote the fixed position of the tooltip. The issue was resolved by changing the order of function execution so that nonAxisChartsTooltips() runs first, followed by the drawFixedTooltipRect() function that fixes the tooltip position.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • My branch is up to date with any changes from the main branch

@junedchhipa junedchhipa merged commit 1858d33 into apexcharts:main Feb 20, 2025
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.

Tooltip Fixed Attribute Does Not Work for Donut Chart

2 participants