I’m looking for a charting library and found Vico ...
# compose-android
a
I’m looking for a charting library and found Vico and Jetbrains Lets-Plot. I like ‘gg’ style APIs so Lets Plot was looking great … but the dependencies are giving me pause (skia, skika, etc). I’m more concerned that it depends on compose multiplatform, and this app will be android only (using jetpack compose). If I use this library, what are the material impacts compose multiplatform would have as a dependency, would I need to use that for the whole app vs jetpack compose, etc
i
Not necessarily multiplatform. When targeting Android, it depends on
skiko-android
and Android-specific or maybe just JVM (not sure here) compose artifacts: https://github.com/JetBrains/lets-plot-compose-demos/blob/1120946fcfdf20800e192215edbe0e30d174bfa9/compose-android-min/build.gradle.kts#L105 Another option is to use Kotlin/JS and lets-plot in WebView.
a
Thank you Igor. I swapped out compose-multiplatform with latest jetpack compose, AGP 8.5.0 and Kotlin 2.0.0 and everything worked. When I bumped
skiko.version
in `gradle.properties`to 0.8.10 i got
Copy code
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jetbrains/letsPlot/skia/view/SvgSkikoView;`
It might be nice if the project also had a branch for jetpack compose to ensure that still works as well
BTW, is there a lets-plot channel … if this isn’t the right place?
i
There is no such channel but fill free to post to issues/discussions at Github: https://github.com/JetBrains/lets-plot or https://github.com/JetBrains/lets-plot-skia As for Skiko version, the highest supported is v.0.7.92 (see https://github.com/JetBrains/lets-plot-skia?tab=readme-ov-file#dependencies) , also notes here https://github.com/JetBrains/lets-plot-skia/blob/main/CHANGELOG.md#changed In a nutshell there is a blocking issue in Skiko: https://github.com/JetBrains/skiko/issues/761