GNOME Bugzilla – Bug 704742
Graph imported incorrectly/partially from ods file
Last modified: 2013-07-23 21:59:46 UTC
Created attachment 249889 [details] sample case I don't know if this is a bug or a lack of feature. But the graph, which is drawn from multiple ranges/cells in this ods file, is not completely imported in Gnumeric.
It really comes down to the interpretation of <chart:series chart:style-name="ch7" chart:values-cell-range-address="Sheet1.A2:Sheet1.A4 Sheet1.A6:Sheet1.A6 Sheet1.A9:Sheet1.A9 Sheet1.A14:Sheet1.A14 Sheet1.A22:Sheet1.A22" chart:label-cell-address="Sheet1.A1:Sheet1.A1" chart:class="chart:bar"> According to ODF 1.2 "The chart:values-cell-range-address attribute specifies a cell range that contains the values for a data series." and "The chart:values-cell-range-address attribute has the data type cellRangeAddressList 18.3.6.". I believe we currently just expect a single cellRangeAddress rather than a cellRangeAddressList.
The tricky part is that we don't see support for series combined from various ranges in goffice. I guess we could import that list as array(Sheet1.A2:Sheet1.A4 Sheet1.A6:Sheet1.A6 Sheet1.A9:Sheet1.A9 Sheet1.A14:Sheet1.A14 Sheet1.A22:Sheet1.A22) and on export strip the array function again.
I have fixed the import. So the sample file now imports correctly. I still have to fix the export though, and so are keeping this bug open.
We can now export the original file correctly so that it can be opened by LO. There is still the problem that we don't open it correctly...
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.