Apache OpenOffice (AOO) Bugzilla – Issue 49335
Importing .xls file with autoscaled log y-axis with values <1.0
Last modified: 2013-02-24 21:20:12 UTC
How to reproduce this bug: 1. In Excel: - make one column with values 1..100 - make second column with exp(-first_column) - add graph of the second column with log scale on y-axis 2. Open the above file in OOo - there is no curve drawn -- the autoscaled range goes from 1 to 10 instead of 1e-something to 1.0 - further, there are strange tic labels on x-axis The log scale is drawn OK for y-values larger than 1.0. Enclosed: - an Excel file with two columns and linear and log scale graphs - screenshots of MS Excel 2000 and OOo 1.9.94. Thanks for fixing this. Log graphs of values<1.0 are quite important for scientific graphs of normalized intensities, for example.
Hi Daniel, please have a look
DR->Mikulik: The labels on the X axis are there because you have created a simple line chart without setting a range for the labels. Excel and Calc use automatic labels then: Excel simply uses 1, 2, 3, ..., while Calc uses "Row 1", "Row 2", "Row 3", ... (in Czech). To workaround this, change the chart type to an XY chart (Excel: Scatter chart). Then you will get numeric labels on the X axis in Calc and Excel with the correct values (value range from 1 to 5, instead text labels from 1 to 50). Do not forget to include the first column into the source range. To workaround the Y axis problem in the current OOo version, you can remove the Automatic flags for minimum and maximum in Excel. DR->BM: The problem is the auto-scaling functionality in our chart module, not the Excel import filter. But I don't think this is important enough for 2.0.1 target. With my new auto-scaling it should work in Chart2 anyway ;-)
The real problem for the weird y-axis scaling comes from the chart being "stacked". If you choose the unstacked line (or better xy/scatter) chart the scaling should be ok. We will fix this in the new chart implementation, therefore I change the target.
This bug was fixed with the complete re-implementation of the chart module starting with version SRC680m213.
Seen fixed in SRC680m213.
Thomas, please verify on master and close.
This bug was fixed with the complete re-implementation of the chart module.