-
Notifications
You must be signed in to change notification settings - Fork 78
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
Chart tooltip disappearing when new data arrives. #1410
Comments
@TannerGilbert Thank you for reporting this. This definitely seems like a bug. I already have a guess that we are not getting a new |
As expected, highcharts does not send a new My current approach to solve this, would be to see if we can either:
|
This seems more and more like something that cannot be fixed. At least not in the way highcharts is currently wrapped into the When the series data is being set, the charts update function is called: barista/libs/barista-components/chart/src/chart.ts Lines 232 to 236 in 24647e8
In this update function, we need to destroy the current chart object and reinstantiate it again. Highcharts has an update function, although this will not let the consumer update all properties of the series or chart options. This has been leading to problems in the past, which is why we implemented the re-instantiation functionality in 6df1df8. Before the change, the update function looked like this, where the new series and options were passed to the barista/src/lib/chart/chart.ts Lines 543 to 553 in dd7fa6f
I currently do not see a good way to solve this issue without reintroducing old problems. Any input would be appreciated @ffriedl89 @lukasholzer. The same root cause applies to issue #1412. |
Bug Report
Expected Behavior
Chart tooltip should update, when new values are received.
Current Behavior
Tooltip values are being removed but new values aren't added.
Steps to Reproduce
Used Versions:
Attachments
The text was updated successfully, but these errors were encountered: