HTML
public struct HTML
Functions for converting Figures to HTML documents rendered via Plotly.js.
-
Option how a JavaScript library is incorporated in a HTML document.
See moreDeclaration
Swift
public enum JavaScriptBundleOption -
Creates HTML document that contains the
Figure.Declaration
Swift
static public func create(from figure: Figure, plotly: JavaScriptBundleOption = .included, mathJax: JavaScriptBundleOption = .included, document: Bool = false) throws -> StringParameters
figureFigureobject representing a Plotly.js chart.plotlySpecifies how is Plotly.js library source code incorporated in the HTML output. Size of the minified library is about 3 MB.
mathJaxSpecifies how is MathJax.js library source code incorporated in the HTML output. Size of the minified library is about 40 kB.
documentFlag indicating whether to create a complete HTML document starting with the
<html>element or only a single<div>holding the chart.
View on GitHub
Install in Dash
HTML Structure Reference