-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Hide callout on legend hover #25978
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
Hide callout on legend hover #25978
Conversation
📊 Bundle size report🤖 This report was generated against 4b52fb0c1a42202c98ea350c9d9411a172b1120d |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 4b52fb0c1a42202c98ea350c9d9411a172b1120d (build) |
| this._onLegendClick(singleChartData.legend); | ||
| }, | ||
| hoverAction: () => { | ||
| this._onLegendHover(singleChartData.legend); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should handleChartMouseLeave come first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this doesn't make much of a difference result-wise as setState is asynchronous. But it will surely be easier to understand if handleChartMouseLeave comes first
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 690e9e4:
|
* hide callout on legend hover * add change file
Previous Behavior
The callout stays visible when user hovers over legends
New Behavior
The callout hides when user hovers over legends