|
86 | 86 | #[serde(rename = "hovertemplate")] |
87 | 87 | hover_template: Option<Dim<String>>, |
88 | 88 | #[serde(rename = "hovertext")] |
89 | | - hover_text: Option<Vec<String>>, |
| 89 | + #[field_setter(with_matrix)] |
| 90 | + hover_text: Option<Dim<String>>, |
90 | 91 | #[serde(rename = "legendgroup")] |
91 | 92 | legend_group: Option<String>, |
92 | 93 | #[serde(rename = "legendgrouptitle")] |
|
99 | 100 | show_legend: Option<bool>, |
100 | 101 | #[serde(rename = "showscale")] |
101 | 102 | show_scale: Option<bool>, |
102 | | - text: Option<Vec<String>>, |
| 103 | + #[field_setter(with_matrix)] |
| 104 | + text: Option<Dim<String>>, |
103 | 105 | transpose: Option<bool>, |
104 | 106 | visible: Option<Visible>, |
105 | 107 | x: Option<Vec<X>>, |
@@ -214,15 +216,15 @@ mod tests { |
214 | 216 | .hover_on_gaps(true) |
215 | 217 | .hover_template("tmpl") |
216 | 218 | .hover_template_array(vec!["tmpl1", "tmpl2"]) |
217 | | - .hover_text(vec!["hov", "er"]) |
| 219 | + .hover_text_array(vec!["hov", "er"]) |
218 | 220 | .legend_group("1") |
219 | 221 | .legend_group_title("Legend Group Title") |
220 | 222 | .name("name") |
221 | 223 | .opacity(0.99) |
222 | 224 | .reverse_scale(false) |
223 | 225 | .show_legend(true) |
224 | 226 | .show_scale(false) |
225 | | - .text(vec!["te", "xt"]) |
| 227 | + .text_array(vec!["te", "xt"]) |
226 | 228 | .transpose(true) |
227 | 229 | .visible(Visible::LegendOnly) |
228 | 230 | .x_axis("x") |
|
0 commit comments