Is there anyway to implement animation in plots? Something like this
Yogeshvu
01/06/2024, 6:44 PM
Here it is showing sorting algorithm
a
altavir
01/06/2024, 7:38 PM
It depends on a plotting library you use. It is possible in Polotly-kt. It supports dynamic data change.
As for lets-plot, it seems that it does not support dynamic data updates at the moment. See https://github.com/JetBrains/lets-plot-kotlin/issues/137. There seem to be some to trick to make it work.
altavir
01/06/2024, 7:39 PM
In plotly you need to use plotlykt-server artifact for dynamic updates.
y
Yogeshvu
01/07/2024, 1:59 PM
Thanks. Is there a support in kandy library as well?
a
altavir
01/07/2024, 2:15 PM
@Andrei Kislitsyn says that it is possible to add incremental updates to kandy if the target supports it, but primary target is lets-plot and it does not at the moment.
a
Andrei Kislitsyn
01/07/2024, 3:24 PM
That's true. Currently kandy doesn't support dynamic changes / animation.