You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,13 @@ This project is developed to allow simple access to plotly functionality from ko
24
24
25
25
The library supports three drawable plot objects:
26
26
*`Plot` itself stands for a stand-alone plot frame. It requires external infrastructure to load appropriate JavaScript libraries.
27
-
*`PlotFragment`(JVM only) is an HTML fragment possibly including several plots. The API for html is provided by [kotlinx-html](https://github.com/Kotlin/kotlinx.html) library.
28
-
*`PlotlyPage`(JVM only) is a complete page, including body fragment and page headers (needed to load JavaScript part of Plotly).
27
+
*`PlotFragment` is an HTML fragment possibly including several plots. The API for html is provided by [kotlinx-html](https://github.com/Kotlin/kotlinx.html) library.
28
+
*`PlotlyPage` is a complete page, including body fragment and page headers (needed to load JavaScript part of Plotly).
29
29
30
30
The work with plotly graphs could be rendered in following modes:
31
31
32
32
## HTML page export
33
-
(JVM only) Export plot or a plot grid in a standalone html file, which
34
-
uses CDN based plotly distribution. This mode does not support updates.
33
+
(JVM and native) Export plot or page in a standalone html file, using CDN distribution or local JS file (JVM only). This mode does not support updates.
35
34
36
35
See [staticPlot](./examples/src/main/kotlin/staticPlot.kt) and
37
36
[customPage](./examples/src/main/kotlin/customPage.kt) for examples.
@@ -74,6 +73,9 @@ The module `plotly-server` adds server capabilities and allows to render dynamic
74
73
## Kotlin-scripting (experimental)
75
74
It is possible to separate script logic into stand-alone `plotly.kts` script file and generate an html from the command line. See [plotlykt-script](./plotlykt-script) module for details.
76
75
76
+
## Kotlin/Native (experimental)
77
+
Plotly model now fully supports Kotlin/Native. It means that you can use it to create a proper Plotly-based HTML file. You will still need browser to view it. You can use [native-demo](./examples/native-demo) example.
Copy file name to clipboardExpand all lines: docs/templates/README-TEMPLATE.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,13 @@ This project is developed to allow simple access to plotly functionality from ko
24
24
25
25
The library supports three drawable plot objects:
26
26
*`Plot` itself stands for a stand-alone plot frame. It requires external infrastructure to load appropriate JavaScript libraries.
27
-
*`PlotFragment`(JVM only) is an HTML fragment possibly including several plots. The API for html is provided by [kotlinx-html](https://github.com/Kotlin/kotlinx.html) library.
28
-
*`PlotlyPage`(JVM only) is a complete page, including body fragment and page headers (needed to load JavaScript part of Plotly).
27
+
*`PlotFragment` is an HTML fragment possibly including several plots. The API for html is provided by [kotlinx-html](https://github.com/Kotlin/kotlinx.html) library.
28
+
*`PlotlyPage` is a complete page, including body fragment and page headers (needed to load JavaScript part of Plotly).
29
29
30
30
The work with plotly graphs could be rendered in following modes:
31
31
32
32
## HTML page export
33
-
(JVM only) Export plot or a plot grid in a standalone html file, which
34
-
uses CDN based plotly distribution. This mode does not support updates.
33
+
(JVM and native) Export plot or page in a standalone html file, using CDN distribution or local JS file (JVM only). This mode does not support updates.
35
34
36
35
See [staticPlot](./examples/src/main/kotlin/staticPlot.kt) and
37
36
[customPage](./examples/src/main/kotlin/customPage.kt) for examples.
@@ -72,6 +71,9 @@ The module `plotly-server` adds server capabilities and allows to render dynamic
72
71
## Kotlin-scripting (experimental)
73
72
It is possible to separate script logic into stand-alone `plotly.kts` script file and generate an html from the command line. See [plotlykt-script](./plotlykt-script) module for details.
74
73
74
+
## Kotlin/Native (experimental)
75
+
Plotly model now fully supports Kotlin/Native. It means that you can use it to create a proper Plotly-based HTML file. You will still need browser to view it. You can use [native-demo](./examples/native-demo) example.
0 commit comments