Lets-Plot Skia Frontend is a Kotlin Multiplatform library that allows you to embed
Lets-Plot charts in a Compose Multiplatform or Java Swing application.
- Compose Desktop (macOS, Windows, Linux)
For more information see Compose multiplatform compatibility and versioning overview. - Android (
lets-plot-skia
<= v2.0.0. New versions temporarily don't support Android due to SKIKO-761) - Java Swing
See release notes for the latest version of the dependencies: v2.1.1
dependencies {
...
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-kernel:4.9.3")
// Lets-Plot Multiplatform
implementation("org.jetbrains.lets-plot:lets-plot-common:4.5.2")
implementation("org.jetbrains.lets-plot:platf-awt:4.5.2")
// Lets-Plot Skia Frontend
implementation("org.jetbrains.lets-plot:lets-plot-compose:2.1.1")
}
See example: Compose desktop demo.
Note: the latest supported version is lets-plot-skia
v2.0.0. The new versions temporarily don't support Android due to SKIKO-761.
dependencies {
...
implementation("org.jetbrains.skiko:skiko-android:0.8.4")
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-kernel:4.9.3")
// Lets-Plot Multiplatform
implementation("org.jetbrains.lets-plot:lets-plot-common:4.5.2")
// Lets-Plot Skia Frontend
implementation("org.jetbrains.lets-plot:lets-plot-compose:2.0.0")
}
See example: Android minimal demo.
dependencies {
...
implementation("org.jetbrains.skiko:skiko:0.8.4")
// The host OS and architecture should be specified explicitly.
implementation("org.jetbrains.skiko:skiko-awt-runtime-macos-x64:0.8.4")
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-kernel:4.9.3")
// Lets-Plot Multiplatform
implementation("org.jetbrains.lets-plot:lets-plot-common:4.5.2")
implementation("org.jetbrains.lets-plot:platf-awt:4.5.2")
// Lets-Plot Skia Frontend
implementation("org.jetbrains.lets-plot:lets-plot-swing-skia:2.1.1")
}
You will find complete examples of using Lets-Plot Kotlin API with Lets-Plot Skia Frontend in the following
GitHub repository: JetBrains/lets-plot-compose-demos.
See CHANGELOG.md.
This project and the corresponding community are governed by the JetBrains Open Source and Community Code of Conduct. Please make sure you read it.
Code and documentation released under the MIT license. Copyright © 2023-2024, JetBrains s.r.o.