(&self, plot_div_id: Option<&str>)
| 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", |
nothing calls this directly
no test coverage detected