diff --git a/plotly/src/traces/bar.rs b/plotly/src/traces/bar.rs index 0acaed0..92ccc0b 100644 --- a/plotly/src/traces/bar.rs +++ b/plotly/src/traces/bar.rs @@ -55,8 +55,8 @@ where legend_group_title: Option, opacity: Option, ids: Option>, - width: Option, - offset: Option>, + width: Option, + offset: Option>, text: Option>, #[serde(rename = "textposition")] text_position: Option>, @@ -162,8 +162,8 @@ mod tests { .legend_group_title("legend-group-title") .marker(Marker::new()) .name("Bar") - .offset(5) - .offset_array(vec![5, 5]) + .offset(5.0) + .offset_array(vec![5.0, 5.0]) .offset_group("offset_group") .opacity(0.5) .orientation(Orientation::Vertical) @@ -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,8 +197,8 @@ mod tests { "legendgrouptitle": {"text": "legend-group-title"}, "opacity": 0.5, "ids": ["1"], - "width": 999, - "offset": [5, 5], + "width": 999.0, + "offset": [5.0, 5.0], "text": ["text"], "textposition": ["none"], "texttemplate": ["text_template"],