Plotly.kt ktor server on Bintray:
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:
(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.
(JVM only) A Ktor CIO server with full multi-page and update capabilites.
See simpleServer and
dynamicServer for examples.
There are two ways to solve it:
- Contribute! It is easy!
- You can dynamically add missing features directly into configuration like it done in unsupportedFeature example.
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.
- Other Plotly features
- Full JS support
- Static SVG export via orca
- Dash module