PlotlyFragment

class PlotlyFragment(val render: FlowContent.(renderer: PlotlyRenderer) -> Unit)

A custom HTML fragment including plotly container reference

Constructors

Link copied to clipboard
constructor(render: FlowContent.(renderer: PlotlyRenderer) -> Unit)

Properties

Link copied to clipboard
val render: FlowContent.(renderer: PlotlyRenderer) -> Unit

Functions

Link copied to clipboard
fun PlotlyFragment.makeFile(path: Path? = null, show: Boolean = true, title: String = "Plotly.kt", resourceLocation: ResourceLocation = ResourceLocation.LOCAL, additionalHeaders: List<PlotlyHtmlFragment> = emptyList())

The same as Plot.makeFile.

Link copied to clipboard
fun PlotlyFragment.toPage(vararg headers: PlotlyHtmlFragment = arrayOf(cdnPlotlyHeader), title: String = "Plotly.kt", renderer: PlotlyRenderer = StaticPlotlyRenderer): PlotlyPage

Convert an html plot fragment to page