Skip to content

Commit

Permalink
Make Bar.width to be Option<f64>
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionizing committed Aug 27, 2024
1 parent f013f50 commit 7df593b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plotly/src/traces/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ where
legend_group_title: Option<LegendGroupTitle>,
opacity: Option<f64>,
ids: Option<Vec<String>>,
width: Option<usize>,
width: Option<f64>,
offset: Option<Dim<usize>>,
text: Option<Dim<String>>,
#[serde(rename = "textposition")]
Expand Down Expand Up @@ -178,7 +178,7 @@ mod tests {
.text_template("text_template")
.text_template_array(vec!["text_template"])
.visible(Visible::LegendOnly)
.width(999)
.width(999.0)
.x_axis("xaxis")
.x_calendar(Calendar::Nanakshahi)
.y_axis("yaxis")
Expand All @@ -197,7 +197,7 @@ mod tests {
"legendgrouptitle": {"text": "legend-group-title"},
"opacity": 0.5,
"ids": ["1"],
"width": 999,
"width": 999.0,
"offset": [5, 5],
"text": ["text"],
"textposition": ["none"],
Expand Down

0 comments on commit 7df593b

Please sign in to comment.