Skip to content

Commit 5077f8b

Browse files
Ionizingandrei-ng
authored andcommitted
Make Bar.width to be Option<f64>
1 parent 32717e0 commit 5077f8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotly/src/traces/bar.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ where
5555
legend_group_title: Option<LegendGroupTitle>,
5656
opacity: Option<f64>,
5757
ids: Option<Vec<String>>,
58-
width: Option<usize>,
58+
width: Option<f64>,
5959
offset: Option<Dim<usize>>,
6060
text: Option<Dim<String>>,
6161
#[serde(rename = "textposition")]
@@ -178,7 +178,7 @@ mod tests {
178178
.text_template("text_template")
179179
.text_template_array(vec!["text_template"])
180180
.visible(Visible::LegendOnly)
181-
.width(999)
181+
.width(999.0)
182182
.x_axis("xaxis")
183183
.x_calendar(Calendar::Nanakshahi)
184184
.y_axis("yaxis")
@@ -197,7 +197,7 @@ mod tests {
197197
"legendgrouptitle": {"text": "legend-group-title"},
198198
"opacity": 0.5,
199199
"ids": ["1"],
200-
"width": 999,
200+
"width": 999.0,
201201
"offset": [5, 5],
202202
"text": ["text"],
203203
"textposition": ["none"],

0 commit comments

Comments
 (0)