Skip to content

Commit

Permalink
Adding layoutIterations() support
Browse files Browse the repository at this point in the history
  • Loading branch information
qknight committed Nov 20, 2023
1 parent 21020cb commit caad3c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charming/src/series/sankey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ pub struct Sankey {
#[serde(skip_serializing_if = "Option::is_none")]
emphasis: Option<Emphasis>,

#[serde(skip_serializing_if = "Option::is_none")]
layoutIterations: Option<u64>,

#[serde(skip_serializing_if = "Option::is_none")]
orient: Option<Orient>,

Expand Down Expand Up @@ -133,6 +136,7 @@ impl Sankey {
width: None,
height: None,
emphasis: None,
layoutIterations: None,
orient: None,
label: None,
node_align: None,
Expand Down Expand Up @@ -197,6 +201,11 @@ impl Sankey {
self
}

pub fn layoutIterations<F: Into<u64>>(mut self, layoutIterations: F) -> Self {
self.layoutIterations = Some(layoutIterations.into());
self
}

pub fn orient<O: Into<Orient>>(mut self, orient: O) -> Self {
self.orient = Some(orient.into());
self
Expand Down

0 comments on commit caad3c0

Please sign in to comment.