
Embeds Lets-Plot charts in Compose or Java Swing applications, supporting Compose Desktop and Android. Integrates with Compose Multiplatform, Skiko, and Lets-Plot Kotlin API for seamless chart rendering.
Lets-Plot Compose Frontend is a Kotlin Multiplatform library that allows you to embed
Lets-Plot charts in a Compose Multiplatform
application targeting Desktop, Android, and WasmJS.
For more details see Compose multiplatform compatibility and versioning overview.
Compose Multiplatform: 1.11.0
Lets-Plot Kotlin API: 4.14.0
Lets-Plot Multiplatform: 4.10.1
kotlinx-datetime: 0.6.2
kotlinx-coroutines: 1.8.0
dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.components.resources)
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin:4.14.0")
// Optional: contains the PlotImageExport utility which enables exporting to raster formats.
implementation("org.jetbrains.lets-plot:platf-awt:4.10.1")
// Lets-Plot Compose UI
implementation("org.jetbrains.lets-plot:lets-plot-compose:3.2.0")
}See examples:
[!TIP] The
org.jetbrains.lets-plot:lets-plot-kotlindependency transitively brings in 3rd-party runtime dependencies:
org.jetbrains.kotlinx:kotlinx-datetime:0.6.2org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0For a dependency-free configuration (JVM/Desktop target only), replace
lets-plot-kotlinwith the following:implementation("org.jetbrains.lets-plot:lets-plot-kotlin-kernel:4.14.0") implementation("org.jetbrains.lets-plot:lets-plot-common:4.10.1")
dependencies {
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-kernel:4.14.0")
// Lets-Plot Compose UI
implementation("org.jetbrains.lets-plot:lets-plot-compose:3.2.0")
}See examples:
dependencies {
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin:4.14.0")
// Lets-Plot Compose UI
implementation("org.jetbrains.lets-plot:lets-plot-compose:3.2.0")
}See examples:
You will find complete examples of using Lets-Plot Kotlin API with Lets-Plot Compose 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, JetBrains s.r.o.
Lets-Plot Compose Frontend is a Kotlin Multiplatform library that allows you to embed
Lets-Plot charts in a Compose Multiplatform
application targeting Desktop, Android, and WasmJS.
For more details see Compose multiplatform compatibility and versioning overview.
Compose Multiplatform: 1.11.0
Lets-Plot Kotlin API: 4.14.0
Lets-Plot Multiplatform: 4.10.1
kotlinx-datetime: 0.6.2
kotlinx-coroutines: 1.8.0
dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.components.resources)
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin:4.14.0")
// Optional: contains the PlotImageExport utility which enables exporting to raster formats.
implementation("org.jetbrains.lets-plot:platf-awt:4.10.1")
// Lets-Plot Compose UI
implementation("org.jetbrains.lets-plot:lets-plot-compose:3.2.0")
}See examples:
[!TIP] The
org.jetbrains.lets-plot:lets-plot-kotlindependency transitively brings in 3rd-party runtime dependencies:
org.jetbrains.kotlinx:kotlinx-datetime:0.6.2org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0For a dependency-free configuration (JVM/Desktop target only), replace
lets-plot-kotlinwith the following:implementation("org.jetbrains.lets-plot:lets-plot-kotlin-kernel:4.14.0") implementation("org.jetbrains.lets-plot:lets-plot-common:4.10.1")
dependencies {
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-kernel:4.14.0")
// Lets-Plot Compose UI
implementation("org.jetbrains.lets-plot:lets-plot-compose:3.2.0")
}See examples:
dependencies {
// Lets-Plot Kotlin API
implementation("org.jetbrains.lets-plot:lets-plot-kotlin:4.14.0")
// Lets-Plot Compose UI
implementation("org.jetbrains.lets-plot:lets-plot-compose:3.2.0")
}See examples:
You will find complete examples of using Lets-Plot Kotlin API with Lets-Plot Compose 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, JetBrains s.r.o.