The simple answer is that the documentation is incomplete. The more
detailed answer is that you need to work with the DrawingML specification
which is common to all MS Office products and has its own namespace and,
er, quirks.
Fortunately, as long as you're prepared to do some reverse engineering of
existing files, this is pretty easy to do: add a solid fill both the
"chart space" and the "plot area". The code for both is identical and for
solid fills it has even been optimised.
from openpyxl.chart.shapies import GraphicalProperties
props = GraphicalProperties(solidFill="000000")
chart.graphical_properties = props
chart.plot_area.graphical_properites = props
This is untried and untested so it may not work quite as expected.
Gradient Fills should be possible but you'll basically have to work those
out yourself.
Additions to the documentation are always welcome.
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel:
+49-211-600-3657
Mobile:
+49-178-782-6226