Apache OpenOffice (AOO) Bugzilla – Issue 103147
ODF, workaround MS-Office bug: charts without chart:plot-area table:cell-range-address are empty
Last modified: 2013-02-24 21:20:36 UTC
Load the attached file with OOo 3.1. The chart does not show any data. The reason is that the attribute 'table:cell-range-address' at the 'plot-area' element is missing. Documents with that bug are created by MS-Office2007sp2. OpenOffice.org should try to workaround that MS bug and load the chart nevertheless.
Created attachment 63237 [details] example document containing the problem
This issue was originally reported as a part of issue 103076.
A missing 'table:cell-range-address' at the <chart:plot-area> normally indicates that a chart has its own data. In that case the data must be provided with a <table:table> element within the <chart:chart>. But such a <table:table> element is missing in the attached document. So strictly speaking the document is broken. To apply to the ODF spec it is not sufficient to only set the attribute 'chart:values-cell-range-address' at the series. The 'table:cell-range-address' at the <chart:plot-area> must be set also. This apparent duplication of information has its origin in backwards compatibility. Early implementations of ODF have not been able to use independent ranges for the different series. Instead only one single range was separated into rows or columns. This single range is set at the 'table:cell-range-address' at the <chart:plot-area>. Even if the attached document is wrong strictly speaking I will try to use the data from the parent document in such cases to create the expected result for the users.
Fixed in CWS chart39.
Created attachment 63304 [details] how the chart is expected to look after the fix
@Sophie, please verify in CWS chart39. Thanks, Ingrid! Load the attached document ms_office_2007_sp2_corrected_OLE_Ref.ods and look at the chart. Data from the spreadsheet should be shown within the chart. How it should look like is illustrated within attached ExpectedDisplay.jpg.
Verified in CWS chart39 - Data are correctly displayed within the chart. Sophie
Verified in DEV300m54 under .deb version - Closing - Sophie