toEmbeddedHTML

abstract fun toEmbeddedHTML(): String(source)

Returns an embeddable HTML fragment (a <div> and inline <script>) suitable for compositing into a larger HTML page. Unlike toHTML, this does not include <html>, <head>, or <body> wrappers. The Lets-Plot JS library must be loaded once in the enclosing page's <head> for the fragment to render correctly.