PlotlyFragment

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

A custom HTML fragment including plotly container reference

Constructors

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

Properties

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

Extensions

makeFile
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.
toPage
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