I use the following code to give specific color for the bars, for a bar chart generated by python-pptx.
chart.series[0].format.fill.solid()
chart.series[0].format.fill.fore_color.rgb = RGBColor(160,190,230)
This looks fine most of time. However, then the bar charts have negative values, the bars, several issues occur.
- The negative bars have no colors and is transparent
- The bars overlap with the category names
I've tried both of below options to no effect.
chart.series[0].invert_if_negative = True
chart.series[0].invert_if_negative = False
Is there a way to make the chart renders properly, with color and not overlapping with category names?