Bug 127128

Summary: MS Word graph is changing direction
Product: LibreOffice Reporter: Devon Powell <Devon.Powell>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: rb.henschel
Priority: medium    
Version: 6.3.0.3 rc   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 75057    
Attachments: Graph test
Comparison Screenshot
Screenshot of the example file in 6.0.7 and current master

Description Devon Powell 2019-08-23 19:49:03 UTC
Description:
Graph changing direction in docx document.

Steps to Reproduce:
1.Open attached 'Graph Test.docx' in MS Word
2.Open attached 'Graph Test.docx' in LibereOffice Writer
3.Observe Graph is changing direction in Livreoffice Writer

Actual Results:
Graph changing direction

Expected Results:
Graph should not change direction


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Devon Powell 2019-08-23 19:49:49 UTC
Created attachment 153610 [details]
Graph test
Comment 2 Devon Powell 2019-08-23 19:50:30 UTC
Created attachment 153611 [details]
Comparison Screenshot
Comment 3 Regina Henschel 2019-08-24 16:21:45 UTC
I see the problem with the attached file, but I cannot reproduce it with a new file. Even if I link the data source, as it is the case in your example, LibreOffice generates the chart correctly from the cached values.

The problem seems to be, that the cached data in the file are inconsistent. The number of points in c:xVal does not correspond to the actual available values and the number of values in c:yVal is different from those in c:xVal.

Can you please open the file in Word and actualize the data table. Hopefully that will repair the inconsistent cached values.

If I make the values consistent manually, the chart in your document is shown as expected.
Comment 4 Gabor Kelemen (allotropia) 2019-09-01 08:40:30 UTC
Created attachment 153789 [details]
Screenshot of the example file in 6.0.7 and current master

This was caused by a missing X value, now looks good in current master after commit 

https://cgit.freedesktop.org/libreoffice/core/commit/?id=4afd65776457be3391f3e1340da614dffc8f227b
Comment 5 Gabor Kelemen (allotropia) 2019-09-01 08:42:12 UTC

*** This bug has been marked as a duplicate of bug 124083 ***