-
Notifications
You must be signed in to change notification settings - Fork 6
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
OOTB crosshair does not show tooltips in all linked charts #100
Comments
@divq thank you very much for feedback. The current implementation was the desired one. I think this could be an enhancement for next releases. |
@divq I'm still thinking about this ehnancement. As you had seen in #88 issue, you can group different chart. As workaround you could use the "activate" elements to show the tooltip: https://pepstock-org.github.io/Charba-Wiki/docs/charts/Api#active-elements If you need to customize better the "interaction" with tooltip, you could use |
My understanding of your suggestion is that I should register an event handler that listens to one chart's tooltip popping up and accordingly activate other charts' tooltips. Let's say there is chart A and B. They are in a If I register a
The problem is that this would lead to an infinite recurrence problem, because when the tooltip wants to pop up on B, it triggers B's ExternalCallback, which sets A's active elements, which again triggers B's ExternalCallback event. And since this is in front end (compiled into JS code), I don't think there is a proper synchronization mechanism to solve this. The result of my experiment:
|
@divq that's not exactly what I meant but really thank you for your experiments. Let me take time to implement it in a use case of the showcase and I'll come back to you with code (if what I think is possible... otherwise I'll try to enhance the plugin in a next version). |
(related to #88)
The javascript one shows tooltips in all linked charts
But the OOTB one (created following the guide)only shows the tooltip in the chart under the mouse.
This is the code for creating the OOTB one (it is an empty GWT 2.11 project using charba-gwt 6.5)
The text was updated successfully, but these errors were encountered: