diff --git a/charming/src/series/sankey.rs b/charming/src/series/sankey.rs index ab96c16..ec9db4f 100644 --- a/charming/src/series/sankey.rs +++ b/charming/src/series/sankey.rs @@ -99,6 +99,9 @@ pub struct Sankey { #[serde(skip_serializing_if = "Option::is_none")] emphasis: Option, + #[serde(skip_serializing_if = "Option::is_none")] + layout_iterations: Option, + #[serde(skip_serializing_if = "Option::is_none")] orient: Option, @@ -133,6 +136,7 @@ impl Sankey { width: None, height: None, emphasis: None, + layout_iterations: None, orient: None, label: None, node_align: None, @@ -197,6 +201,11 @@ impl Sankey { self } + pub fn layout_iterations>(mut self, layout_iterations: F) -> Self { + self.layout_iterations = Some(layout_iterations.into()); + self + } + pub fn orient>(mut self, orient: O) -> Self { self.orient = Some(orient.into()); self