how to hide column chart gridlines xlsxwriter

2.6k views Asked by At

How do I hide the column grid lines on a chart in xlsxwriter. I looked at the documentation page in the chart formatting section and wasn't able to find any example.

Thanks!

1

There are 1 answers

1
Morgan Thrapp On BEST ANSWER

If you take a look at the documentation for the chart class, there are the methods set_x_axis and set_y_axis. It takes a dictionary of formatting options. One of the options you can pass is {'visible': False}.

You can also configure just the major or minor gridlines with {'major_gridlines' :{'visible': False}}