From 439b61187fef4d362cd8e36bbed0118ad85e55ea Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 7 Jul 2022 19:37:27 +0300 Subject: [PATCH 1/6] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8937a3c5..954ede8c 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ See [simpleServer](./examples/src/main/kotlin/simpleServer.kt) and ## Kotlin-JS Plotly is a JavaScript library, yet it is convenient to have a type-safe API when using in with Kotlin-JS. The sample application is available in [js-demo](./js-demo) module. One should node that Plotly.kt for JS is not a zero-cost wrapper like TypeScript definitions, it maintains its own object structure, could generate stand-alone models and some internal optimizations. +** Plotly-kt does not support `LEGACY` JS target. Be sure to use [IR compiler](https://kotlinlang.org/docs/js-ir-compiler.html) ** + ## JavaFX browser Plotly.kt could be run in a JavaFX browser. An example project is presented in [fx-demo](./fx-demo). From c62adec0c80cc80f235d1efd81f93051cc0c4c2d Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 7 Jul 2022 19:37:43 +0300 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 954ede8c..a36dbd0d 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ See [simpleServer](./examples/src/main/kotlin/simpleServer.kt) and ## Kotlin-JS Plotly is a JavaScript library, yet it is convenient to have a type-safe API when using in with Kotlin-JS. The sample application is available in [js-demo](./js-demo) module. One should node that Plotly.kt for JS is not a zero-cost wrapper like TypeScript definitions, it maintains its own object structure, could generate stand-alone models and some internal optimizations. -** Plotly-kt does not support `LEGACY` JS target. Be sure to use [IR compiler](https://kotlinlang.org/docs/js-ir-compiler.html) ** +**Plotly-kt does not support `LEGACY` JS target. Be sure to use [IR compiler](https://kotlinlang.org/docs/js-ir-compiler.html)** ## JavaFX browser Plotly.kt could be run in a JavaFX browser. An example project is presented in [fx-demo](./fx-demo). From 1ec60809c9621bbca358526d21cccaf5d918e1a8 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Fri, 12 Aug 2022 10:20:35 +0300 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a36dbd0d..d7cce0bb 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ The examples of the notebooks are shown in [notebooks](./examples/notebooks) dir //@file:DependsOn("space.kscience:plotlykt-server:0.5.0") // Use this one for sever integration. ``` -The module `plotly` allows rendering static plots in Jupyter. Jupyter lab is currently supported. Jupyter notebook (classic) is able to render only `PlotlyPage` objects, so one must convert plots to pages to be able to use notebook (see [demo notebook](./notebooks/plotlykt-demo-classic.ipynb)). +The module `plotly` allows rendering static plots in Jupyter. Jupyter lab is currently supported. Jupyter notebook (classic) is able to render only `PlotlyPage` objects, so one must convert plots to pages to be able to use notebook (see [demo notebook](./examples/notebooks/plotlykt-demo-classic.ipynb)). The module `plotly-server` adds server capabilities and allows to render dynamic plots in notebooks (see [demo notebook](./notebooks/plotlykt-server-demo.ipynb)). One must note that for dynamic pages, one must pass `renderer` parameter explicitly to plot like it is done in examples. From 3c8ceceed5884a56b30e18901ce92a812cf00b0f Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Fri, 12 Aug 2022 10:22:59 +0300 Subject: [PATCH 4/6] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d7cce0bb..944b859e 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,9 @@ The examples of the notebooks are shown in [notebooks](./examples/notebooks) dir //@file:DependsOn("space.kscience:plotlykt-server:0.5.0") // Use this one for sever integration. ``` -The module `plotly` allows rendering static plots in Jupyter. Jupyter lab is currently supported. Jupyter notebook (classic) is able to render only `PlotlyPage` objects, so one must convert plots to pages to be able to use notebook (see [demo notebook](./examples/notebooks/plotlykt-demo-classic.ipynb)). +The module `plotly` allows rendering static plots in Jupyter. Jupyter lab is currently supported. Jupyter notebook (classic) is able to render only `PlotlyPage` objects, so one must convert plots to pages to be able to use notebook (see [demo notebook](./examples/notebooks/plotlykt-demo.ipynb)). -The module `plotly-server` adds server capabilities and allows to render dynamic plots in notebooks (see [demo notebook](./notebooks/plotlykt-server-demo.ipynb)). One must note that for dynamic pages, one must pass `renderer` parameter explicitly to plot like it is done in examples. +The module `plotly-server` adds server capabilities and allows to render dynamic plots in notebooks (see [demo notebook](./examples/notebooks/plotlykt-server-demo.ipynb)). One must note that for dynamic pages, one must pass `renderer` parameter explicitly to plot like it is done in examples. ## Direct image render via Orca (experimental) [Plotly Orca](https://github.com/plotly/orca) application allows direct rendering of plots (not fragments or pages) to raster of vector images. From eafc2178ba88008a5270db2ff4542994cf43cff8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 May 2023 13:50:14 +0000 Subject: [PATCH 5/6] Bump gradle/gradle-build-action in /.github/workflows Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action) from 2.1.5 to 2.4.2. - [Release notes](https://github.com/gradle/gradle-build-action/releases) - [Commits](https://github.com/gradle/gradle-build-action/compare/v2.1.5...v2.4.2) --- updated-dependencies: - dependency-name: gradle/gradle-build-action dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- .github/workflows/pages.yml | 2 +- .github/workflows/publish.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 5c1c3bac..f8b0b867 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -22,7 +22,7 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} restore-keys: | ${{ runner.os }}-gradle- - - uses: gradle/gradle-build-action@v2.1.5 + - uses: gradle/gradle-build-action@v2.4.2 with: arguments: dokkaHtmlMultiModule --no-parallel - uses: JamesIves/github-pages-deploy-action@v4.3.0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ab9243f1..31d539cd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: ${{ runner.os }}-gradle- - name: Publish Windows Artifacts if: matrix.os == 'windows-latest' - uses: gradle/gradle-build-action@v2.4.0 + uses: gradle/gradle-build-action@v2.4.2 with: arguments: | publishAllPublicationsToSpaceRepository @@ -37,7 +37,7 @@ jobs: -Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }} - name: Publish Mac Artifacts if: matrix.os == 'macOS-latest' - uses: gradle/gradle-build-action@v2.4.0 + uses: gradle/gradle-build-action@v2.4.2 with: arguments: | publishMacosX64PublicationToSpaceRepository From cee5c54555f05a73ce17e7c47e1b155d9972091e Mon Sep 17 00:00:00 2001 From: Joseph-Hui Date: Thu, 27 Jul 2023 10:53:14 +0800 Subject: [PATCH 6/6] Update plotExtensions.kt to add Plot.candlestick --- .../kotlin/space/kscience/plotly/plotExtensions.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plotlykt-core/src/commonMain/kotlin/space/kscience/plotly/plotExtensions.kt b/plotlykt-core/src/commonMain/kotlin/space/kscience/plotly/plotExtensions.kt index ae2df8cc..e99ccbfc 100644 --- a/plotlykt-core/src/commonMain/kotlin/space/kscience/plotly/plotExtensions.kt +++ b/plotlykt-core/src/commonMain/kotlin/space/kscience/plotly/plotExtensions.kt @@ -69,6 +69,12 @@ public inline fun Plot.table(block: Table.() -> Unit): Table { return trace } +public inline fun Plot.candlestick(block: CandleStick.() -> Unit): CandleStick { + val trace = CandleStick(block) + traces(trace) + return trace +} + public fun Plot.text(block: Text.() -> Unit) { layout.annotation(block) }