Closed Joseph-Hui closed 11 months ago
Thank you for raising the issue. Indeed, we do not support backward event propagation at the moment, because it requires more complicated machinery in terms of communication. It will be easier to add it to VisionForge integration, which support backward event flow.
Evaluating events should be possible in js version, but you should use div
used in polo, to the plot object. I will investigate it and get back to you.
We've moved to 2.x version of Plotly on dev branch, but it should not affect the problem in question.
Yes, I am using Plotly,kt in a Kotlin/JS project. I come up with a temporary solution by defining the plotDiv
object as dynamic, and then I can call the .on()
method without compilation problem. I have posted the solution in here. I think this can be easily be fixed by including the .on()
method in the wrapper.
Thank you very much for your response!
I will try to add this ability in the next release. Maybe we can also add JVM event reaction in VisionForge.
I've added API to work with Plotly events in JS. It is not stable yet because it is not that easy to work with those events.
Released in 0.6.0
I am trying to use the Plotly Event to control the behaviours of the hover and click on the data points of the charts. According to the description in here, the
plot div
object has an.on()
method for customising the behaviours when the Plotly events are received. However, I cannot see the.on()
in the corresponding Kotlin wrapper. Besides, I tried to use thejs()
to directly call the.on()
on the Javascript object and it doesn't work neither. What could the problem be?Moreover, I noticed in the source code, the version of Plotly.js used is 1.54.6. While the latest version of Plotly.js is 2.24.1. Would this be the problem?