Skip to content

Conversation

@marshallpete
Copy link
Member

@marshallpete marshallpete commented Nov 18, 2024

Description

Support anchoring tooltips to marks instead of just to the cursor (default).

You can also specify where the tooltip should be placed if the tooltip anchor is set to mark.

API

interface ChartProps {
tooltipAnchor: `cursor` | `mark`
tooltipPlacement: `top` | `bottom` | `left` | `right`
...
}

How Has This Been Tested?

existing pass
new pass

Screenshots (if appropriate):

Screen.Recording.2024-11-18.at.1.40.56.PM.mov

Story

Chart > TooltipAnchor

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@github-actions
Copy link

@sonarqubecloud
Copy link

@github-actions
Copy link

@marshallpete marshallpete merged commit 6b222f3 into main Nov 19, 2024
5 checks passed
@marshallpete marshallpete deleted the anchorTooltipToMark branch November 19, 2024 16:42
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.

3 participants