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

Function to_json_value

crates/plotlars-plotly/src/ext.rs:164–167  ·  view source on GitHub ↗
(plot: &impl Plot)

Source from the content-addressed store, hash-verified

162 use polars::prelude::*;
163
164 fn to_json_value(plot: &impl Plot) -> serde_json::Value {
165 let json_str = ir_to_json(plot).unwrap();
166 serde_json::from_str(&json_str).unwrap()
167 }
168
169 #[test]
170 fn test_scatter_to_json_has_traces() {

Calls 1

ir_to_jsonFunction · 0.85