Bug 68053

Summary: EDITING: chart displays y-axis origin not as exactly zero
Product: LibreOffice Reporter: freddi34
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jmadero.dev, miguelangelrv
Priority: medium    
Version: 4.0.1.2 release   
Hardware: Other   
OS: Linux (All)   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: Table with input data and resulting chart. The chart's vertical origin is not displayed as zero.
The image shows that the y-axis origin is not displayed as 0 (mathematically between 0.1 and -0.1).

Description freddi34 2013-08-13 10:57:28 UTC
Created attachment 84004 [details]
Table with input data and resulting chart. The chart's vertical origin is not displayed as zero.

Problem description: 
In charts with negative and positive values on the vertical axis, zero does not match step size but is shown as a long irrational number.

Steps to reproduce:
1. See attached file.

Current behavior:
A long irrational number is displayed although according to the axis steps it should be mathematically precise zero.

Expected behavior:
If a precision error appears, it should be rounded to a sensible value.
              
Operating System: Ubuntu
Version: 4.0.1.2 release
Comment 1 freddi34 2013-08-13 11:05:12 UTC
Created attachment 84006 [details]
The image shows that the y-axis origin is not displayed as 0 (mathematically between 0.1 and -0.1).
Comment 2 m_a_riosv 2013-08-13 22:21:26 UTC
Hi freddi34, thanks for reporting.

Reviewing your file the x-axis scale have the minimum in Automatic, what seems have preference over positioning options. You can get it disabling Automatic for x-axis scale and set 0 for Minimum.

I think it is not a bug, but a order preference for options.
Comment 3 Joel Madero 2013-11-16 02:58:03 UTC
You didn't provide steps on how to see the long irrational number, when I open your file I see a 0 at the axis. 

Marking as WFM - if you are still seeing this with 4.1 please reopen the bug and provide clearer steps on how you see the long irrational number and then we can check on mariosv's comment. 

Thanks for the report