You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may also apply to other data types. This is not a bug with excel-writer-xlsx, but the documentation needs updated. I have a date field as my X axis. It was originally set like this:
When switching from Office 2011 (Mac) to Excel for Mac 15.30, the dates went from displaying correctly to just being the numbers 1..n. I thought this might fix it:
But no luck. In fact, that turns out to make no difference in the solution I found. After much guessing and close inspection, I've discovered that the new version requires that ticks (') are needed around the name of the sheet when referencing the category data (and perhaps other places). Original code:
Note the added single quotes in the lines with categories and values. It's really the categories line that fixed my problem, but I was being thorough. I can't find this need discussed anyplace, and none of the fantastic examples provided show this form. I won't guarantee that this fix is backward compatible with older version of excel because I don't have one handy. If it is, updating the examples would be great. If not, maybe just a note that the format may need to be different for newer/older versions of excel.
-Todd
The text was updated successfully, but these errors were encountered:
This may also apply to other data types. This is not a bug with excel-writer-xlsx, but the documentation needs updated. I have a date field as my X axis. It was originally set like this:
When switching from Office 2011 (Mac) to Excel for Mac 15.30, the dates went from displaying correctly to just being the numbers 1..n. I thought this might fix it:
But no luck. In fact, that turns out to make no difference in the solution I found. After much guessing and close inspection, I've discovered that the new version requires that ticks (') are needed around the name of the sheet when referencing the category data (and perhaps other places). Original code:
Working code:
Note the added single quotes in the lines with categories and values. It's really the categories line that fixed my problem, but I was being thorough. I can't find this need discussed anyplace, and none of the fantastic examples provided show this form. I won't guarantee that this fix is backward compatible with older version of excel because I don't have one handy. If it is, updating the examples would be great. If not, maybe just a note that the format may need to be different for newer/older versions of excel.
-Todd
The text was updated successfully, but these errors were encountered: