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

Method write_html

crates/plotlars-plotly/src/subplot_grid/mod.rs:149–152  ·  view source on GitHub ↗

Write the subplot grid to an HTML file.

(&self, path: impl Into<String>)

Source from the content-addressed store, hash-verified

147
148 /// Write the subplot grid to an HTML file.
149 pub fn write_html(&self, path: impl Into<String>) {
150 let html = self.to_html();
151 std::fs::write(path.into(), html).expect("Failed to write HTML file");
152 }
153
154 /// Serialize the subplot grid to a JSON string.
155 pub fn to_json(&self) -> Result<String, serde_json::Error> {

Callers

nothing calls this directly

Calls 1

to_htmlMethod · 0.45

Tested by

no test coverage detected