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

Method to_html

crates/plotlars-plotly/src/ext.rs:76–84  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

74 }
75
76 fn to_html(&self) -> String {
77 let result = build_plotly_result(self);
78 if result.layout_overrides.is_some() {
79 let json = ir_to_json(self).unwrap_or_default();
80 render_html_from_json(&json)
81 } else {
82 result.plot.to_html()
83 }
84 }
85
86 fn to_inline_html(&self, plot_div_id: Option<&str>) -> String {
87 let result = build_plotly_result(self);

Callers

nothing calls this directly

Calls 3

build_plotly_resultFunction · 0.85
ir_to_jsonFunction · 0.85
render_html_from_jsonFunction · 0.85

Tested by

no test coverage detected