Created attachment 146454 [details]
Example file from Excel, simplified from attachment of bug #54757
Imported Chart axis labels in DOCX document created with Microsoft Word 2010 change to default when the document is opened in LibreOffice Writer 188.8.131.52.alpha1+.
Steps to reproduce:
1. Open the attached DOCX file in LibreOffice Writer
2. View the attached screenshot
3. Notice that the chart axis labels changed to default
Chart axis labels change to default when the document is opened in LibreOffice Writer 184.108.40.206.alpha1+.
Chart axis should have the same values as the original file when the document is opened in Microsoft Word 2010
Build ID: 2cef68a605494bcef0388201b1058c95788c45a8
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win;
Locale: hu-HU (hu_HU); Calc: threaded
Created attachment 146455 [details]
Screenshot of the original document side by side in Excel and Calc
Of course the file is from Excel :)
Confirm with 4.1 and Version: 220.127.116.11.alpha1+
Build ID: b0da1ca2d7a426ff13f39b21362fbcd5c0580c24
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3;
This seems to stem from the same area as bug #80816 - MSO supports custom axis label ranges, but LO doesn't.
(In reply to Gabor Kelemen from comment #3)
> This seems to stem from the same area as bug #80816 - MSO supports custom
> axis label ranges, but LO doesn't.
Looking further, these labels come from this tag in chart1.xml:
<c:numLit><c:formatCode>General</c:formatCode><c:ptCount val="5"/><c:pt idx="0"><c:v>2007</c:v></c:pt><c:pt idx="1"><c:v>2008</c:v></c:pt><c:pt idx="2"><c:v>2009</c:v></c:pt><c:pt idx="3"><c:v>2010</c:v></c:pt><c:pt idx="4"><c:v>2011</c:v></c:pt></c:numLit>
In other words Excel allows a list of string literals to be entered as custom axis labels, while LO allows only a range in Data Ranges dialog - Data Series tab - Categories list.
Selecting a range in Excel instead of the above, saving and opening works fine in Calc master.