jmcnamara / XlsxWriter

A Python module for creating Excel XLSX files.
https://xlsxwriter.readthedocs.io
BSD 2-Clause "Simplified" License
3.66k stars 631 forks source link

Adding Border to Series in Pie Chart #1096

Closed aaron-TMRS closed 3 weeks ago

aaron-TMRS commented 3 weeks ago

Question

Hi,

I've been trying to make the series in the pie chart have the borders of a given size using 'border': {'color': '#FFFFFF', 'width': 1.5}, however when it writes there is no border on the chart. The odd thing is that when I look at the formatting of the series in Excel, all of the parameters are what I would expect them to be, and if I change it to no line and then back to solid line it appears correctly.

I know that the Pie Chart example in the documentation shows using a style to get a border there, and setting that first and trying to add the series afterwards with the new width also doesn't work.

This leads me to believe that the style that is being set is somehow overriding this particular property, and was wondering if there is a workaround or if I'm doing something incorrectly.

Thanks

jmcnamara commented 3 weeks ago

Can you please add a small, compete, working example that demonstrates the issue.

aaron-TMRS commented 3 weeks ago

Nevermind, we use a wrapper to implement xlsxwriter, and when I tried to create a simpler version it seemed to work, which means that there's another setting we're doing elsewhere that's affecting it.

Closing this out.