Skip to content

Tag: openpyxl

How to set line color of openpyxl ScatterChart

I am trying to set the line of an openpyxl scatter chart to green: While this code does not cause any problems, it does not change the line color from the default. What is the correct way to change the line color? Interestingly I have no problem setting the style to dashed or dotted using: Answer As it turns …

Fill cells with colors using openpyxl?

I am currently using openpyxl v2.2.2 for Python 2.7 and i wanted to set colors to cells. I have used the following imports and the following is the code I tried using: but I get the following error: Any idea on how to set cell A1 (or any other cells) with colors using openpyxl? Answer I believe the issue is