From 5077f8b23c09b78ed4331fb1f86d2fbd9ad2038d Mon Sep 17 00:00:00 2001 From: Ionizing Date: Tue, 27 Aug 2024 20:58:22 +0800 Subject: [PATCH] Make Bar.width to be Option --- plotly/src/traces/bar.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plotly/src/traces/bar.rs b/plotly/src/traces/bar.rs index 0acaed0d..789580b8 100644 --- a/plotly/src/traces/bar.rs +++ b/plotly/src/traces/bar.rs @@ -55,7 +55,7 @@ where legend_group_title: Option, opacity: Option, ids: Option>, - width: Option, + width: Option, offset: Option>, text: Option>, #[serde(rename = "textposition")] @@ -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") @@ -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"],