Skip to main content

make_plotly_html

Function make_plotly_html 

Source
pub fn make_plotly_html(plotly_json: &str) -> String
Expand description

Wraps a Plotly-JSON object in a self-contained HTML page.

The resulting HTML pulls Plotly.js from CDN and renders the figure in a full-page <div>.