I am trying to change the background color of an existing Powerpoint chart with python-pptx. However, the 'fill' attribute doesn't seem to be implemented for charts yet. What I've tried so far:
chart_frame = shapes.add_chart(chart_type, left, top, width, height, chart_data)
chart = chart_frame.chart
chart.fill.solid()
chart.fill.fore_color.rgb = RGBColor(r, g, b)
I've also tried to edit the fill attribute of the chart_frame and the plot, but it doesn't work.
Is there any workaround function to manipulate the underlying xml in order to solve this problem?
Any help is much appreciated!