0
我想使用openpyxl更改圖表的背景顏色,as in this example。如何使用openpyxl設置圖表的繪圖區域的背景顏色
在谷歌小組討論,我發現下面的代碼片段:
from openpyxl.chart.shapes import GraphicalProperties
props = GraphicalProperties(solidFill="999999")
chart.graphical_properties = props
chart.plot_area.graphical_properties = props
但當保存到Excel文件,它並沒有在圖表上的任何影響。
非常感謝@Friedemann這工作! –
然後,我建議您將答案標記爲已接受。 ;) –