Skip to content

About

An interactive Kotlin wrapper for plotly visualization tools

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Plotly.kt core on Bintray: Bintray

Plotly.kt ktor server on Bintray: Bintray

DOI

Description

This project is developed to allow simple access to plotly functionality from kotlin-multiplatform. The API allows to create plotly configuration and render it as a plotly chart.

The work with plotly graphs could be done in following modes:

HTML page export

(JVM only) Export plot or a plot grid in a standalone html file, which uses CDN based plotly distribution. This mode does not support updates.

See staticPlot and
staticPage for examples.

Ktor-based server with dynamic updates

(JVM only) A Ktor CIO server with full multi-page and update capabilites.

See simpleServer and
dynamicServer for examples.

The feature I need is not implemented!

There are two ways to solve it:

  1. Contribute! It is easy!
  2. You can dynamically add missing features directly into configuration like it done in unsupportedFeature example.

Build and usage

In order to use the library, one needs to use following gradle.kts configuration:

plugins {
    kotlin("jvm")
}

repositories {
    jcenter()
    maven("https://dl.bintray.com/mipt-npm/dataforge")
    maven("https://dl.bintray.com/mipt-npm/scientifik")
    maven("https://dl.bintray.com/kotlin/ktor/")
}

dependencies {
    implementation("scientifik:plotlykt-server:0.1.2")
}

When using development versions (if version contains dev), one should also add

    maven("https://dl.bintray.com/mipt-npm/dev")

into the repository list.

If you do not need the server, then use plotlykt-core instead and remove ktor repository.

Planned features

  • Other Plotly features
  • Full JS support
  • Static SVG export via orca
  • Dash module

About

An interactive Kotlin wrapper for plotly visualization tools

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages