Experience the future of data visualization with K...
# datascience
z
Experience the future of data visualization with Kandy, the new Kotlin plotting library. Boasting a user-friendly DSL, Kandy seamlessly integrates with Kotlin DataFrame and Kotlin Notebook, offering a cohesive approach to effortless chart creation. Try out the first public preview of Kandy today, and bring a splash of innovation to your Kotlin projects! Go to the Kandy website, observe the gallery of examples, copy-paste the code snippets, and get started with the bars, lines, and points! https://kotlin.github.io/kandy/examples.html
kodee electrified 5
K 7
very nice 5
s
This is really amazing 👏 …we are using vega lite (https://vega.github.io/vega-lite/examples/) on frontend and would love to move this one when we it’s ready to use on JS target. So, is there anything planned for JS target (not through compose/wasm) ?
a
@suresh Hi! Unfortunately, we are not going to support JS target. However, you can export any Kandy plot to HTML (or SVG if you don’t need interactivity). We would also be glad if you could create an issue with your usecase here https://github.com/Kotlin/kandy/issues.
Also, are you sure WASM won’t work for you?
s
@Andrei Kislitsyn thanks.. I will check the html export option. Yes, wasm would work. Can I use it with a Kotlin js app? Migrating other part of apps to compose-multiplatform (compose-web) is not an option now. So it's not an issue if Kandy uses canvas or wasm for rendering the plots and can easily integrate with a regular web app
a
For now, you can only save plot as
.html
file with https://github.com/Kotlin/kandy/blob/main/kandy-lets-plot/src/main/kotlin/org/jetbrains/kotlinx/kandy/letsplot/export/save.kt, but in the next minor release we’ll add
Plot.toHTML(): String
extension.
👍 1