MCPcopy Create free account
hub / github.com/alceal/plotlars / to_inline_html

Method to_inline_html

crates/plotlars-plotly/src/ext.rs:86–95  ·  view source on GitHub ↗
(&self, plot_div_id: Option<&str>)

Source from the content-addressed store, hash-verified

84 }
85
86 fn to_inline_html(&self, plot_div_id: Option<&str>) -> String {
87 let result = build_plotly_result(self);
88 let div_id = plot_div_id.unwrap_or("plotly-div");
89 if result.layout_overrides.is_some() {
90 let json = ir_to_json(self).unwrap_or_default();
91 render_inline_html_from_json(&json, div_id)
92 } else {
93 result.plot.to_inline_html(plot_div_id)
94 }
95 }
96
97 #[cfg(any(
98 feature = "export-chrome",

Callers

nothing calls this directly

Calls 3

build_plotly_resultFunction · 0.85
ir_to_jsonFunction · 0.85

Tested by

no test coverage detected