Lets-Plot Compose Examples
Lets-Plot Compose Frontend is a Kotlin Multiplatform library that allows you to embed
Lets-Plot charts in a Compose Multiplatform (Desktop, Android) application.
Desktop
To run a Compose Desktop demo in IntelliJ IDEA, navigate to a <demo name>AppMain.kt file in the
compose-desktop or
compose-multiplatform/src/desktopMain
folder and select "Run <app>" from the context menu.
Android (in IntelliJ IDEA)
Setting up the Environment
Make sure the Android plugin is installed.
From menu Tools -> Android -> SDK Manager setup an Android SDK.
The local.properties file will be automatically generated.
In case the local.properties file didn't appear in the project root:
- create it manually
- add property
sdk.dirpointing to the location of the Android SDK on your system.
For example:
sdk.dir=/Users/john/Library/Android/sdk
From menu Tools -> Android -> Device Manager setup Android device.
For example, Nexus 10 with Android 12 works well.
Running a Demo
Build the project:
In the Run Configurations toolbar:
- Select
compose-android-min,compose-android-median, or other AndroidApp Run Configuration - Select the
Androiddevice - Click
Run
Code of Conduct
This project and the corresponding community are governed by the JetBrains Open Source and Community Code of Conduct. Please make sure you read it.
License
Code and documentation released under the MIT license. Copyright © 2023, JetBrains s.r.o.