fpspreadsheet: xlsx chart writer supports chart background color.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9277 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz 2024-03-08 00:28:54 +00:00
parent ef0d96fa34
commit d3e74427df

View File

@ -2776,10 +2776,17 @@ begin
WriteChartLegendNode(AStream, AIndent + 2, chart.Legend);
AppendToStream(AStream,
indent + ' <c:plotVisOnly val="1" />' + LE +
indent + ' <c:plotVisOnly val="1" />' + LE +
indent + '</c:chart>' + LE
);
// Write chart background
AppendToStream(AStream,
indent + '<c:spPr>' + LE +
GetChartFillAndLineXML(AIndent, chart, chart.Background, chart.Border) + LE +
indent + '</c:spPr>' + LE
);
chart.RotatedAxes := savedRotatedAxes;
end;