/koalaplot-samples

Samples demonstrating the features and use of Koala Plot, a Compose Multiplatform based charting and plotting library written in Kotlin.

Primary LanguageKotlinMIT LicenseMIT

Koala Plot Samples

This repository houses samples demonstrating the use and features of Koala Plot libraries.

Try out the web version of the samples for a quick look at the possibilities when using Koala Plot. Note that this uses the alpha Kotlin wasm Compose web-canvas capability, and you'll need a browser supporting the wasm garbage collection feature. For more information see https://kotl.in/wasm_help.

How to run with a development build of koalaplot-core

  1. Build koalaplot-core with the following commands
git clone https://github.com/KoalaPlot/koalaplot-core.git
cd koalaplot-core
./gradlew publishToMavenLocal
  1. Build koalaplot-samples
cd ..
git clone https://github.com/KoalaPlot/koalaplot-samples.git
cd koalaplot-samples
./gradlew build
  1. Run it
    1. For desktop:
    ./gradlew run
    1. For web:
     ./gradlew jsBrowserRun
    1. For Android, to run in an emulator on your mahcine:
      1. Download Android Studio
      2. Open the koalaplot-samples folder as a project in Android Studio
      3. Run kaoalaplot-samples in the emulator. Further instructions on using the emulator are available online.