Hi Is there a way to convert `org.jetbrains.letsP...
# datascience
j
Hi Is there a way to convert
org.jetbrains.letsPlot.intern.Plot
to
org.jetbrains.kotlinx.kandy.ir.Plot
?
a
Hi! Unfortunately no. Could you tell why you need this?
j
Hi Thanks for the quick response. I created with lets plot a dynamic Directed Acyclic Graphs of tasks dependencies that I plan to incorporate it in my Jetbrains plugin by converting it to html. The Plot.toHTML is in kandy but my plot was constructed with lets plot I checked the toHtml and I saw it convert to kandy plot to lets-plot plot. So I will use the lets-plot directly.
👍 1
i
@Jgafner you can get html from lets-plot Plot object using
org.jetbrains.letsPlot.core.util.PlotHtmlExport
utility.
ggsave()
uses it under the hood : https://github.com/JetBrains/lets-plot-kotlin/blob/b09401ec53dbc73e3699b66ca9510ed[…]-api/src/jvmMain/kotlin/org/jetbrains/letsPlot/export/ggsave.kt Also, a simple example here: https://github.com/alshan/lets-plot-mini-apps/blob/main/jvm-plot-export/src/main/kotlin/ExportHTML.kt
🙏 1