-
Notifications
You must be signed in to change notification settings - Fork 66
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
[FEATURE REQUEST] When the mouse passes over the chart, the userOptions operation menu is displayed #148
Comments
A precision before I consider working on your good suggestion: When the mouse enters the chart:
When the mouse leaves the chart:
I'm considering adding 2 config options for userOptions: userOptions: {
...,
showOnChartHover: boolean; // default: false, to keep current behavior and avoid breaking change
keepStateOnChartLeave: boolean; // default: true, to keep current behavior and avoid breaking change
} Let me know if you have additional ideas before I work on this. |
Thank you, I think the two additional configuration items you added should meet my needs |
Ok great. |
@graphieros Great, I'm glad to hear that the basic feature is ready. I understand it's Christmas today, so no worries! I'll look forward to the update being shipped tomorrow. Wishing you a Merry Christmas and a joyful holiday season! |
You can upgrade to v2.4.52+ to use the updated configuration. userOptions: {
show: boolean, // Not new. Has to be true for these new options to be applied. Is true by default
showOnChartHover: boolean; // New option. Default: false. Set to true to only show the burger menu when hovering the component
keepStateOnChartLeave: boolean; // New option. Default: true. Set to false to always close the menu when hovering out the component
} |
Is your feature request related to a problem? Please describe.
In a dashboard scenario, there are multiple charts, and if each chart defaults to displaying the userOptions operation menu, it is obviously not very aesthetically pleasing.
Describe the solution you'd like
When the mouse passes over the chart, the userOptions operation menu is displayed
Describe alternatives you've considered
I once considered not displaying userOptions by default and adding the onmouseover event myself, but this only displayed the thumbnail menu of userOptions without expanding the button. I think this effect is not very good
Additional context

The text was updated successfully, but these errors were encountered: