Integration: #956 chart.options dataLabels resets the series' own settings

Without it, turning Data Labels on did nothing for an imported chart whose series read showVal 0.
This commit is contained in:
aiongg
2026-10-24 06:15:41 +00:00
parent cac379b5ee
commit aed303e504
2 changed files with 25 additions and 0 deletions
+4
View File
@@ -1818,6 +1818,10 @@ fn chart_options(s: &mut Session, p: &Value) -> Result<Value> {
}
if let Some(v) = bool_param(p, "dataLabels") {
c.data_labels = v;
// A series' own setting would otherwise keep overriding the chart-wide switch.
for series in &mut c.series {
series.data_labels = None;
}
}
if let Some(v) = bool_param(p, "gridlines") {
c.gridlines = v;