Bug 139254 - Zero on y axis of graph in scalc is not shown as zero but as very small number close to zero with many digits
Summary: Zero on y axis of graph in scalc is not shown as zero but as very small numbe...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2020-12-27 10:36 UTC by snowboard975
Modified: 2024-12-15 18:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Zero on the y axis is not displayed as zero but as a very small number (15.15 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-12-27 10:38 UTC, snowboard975
Details

Note You need to log in before you can comment on or make changes to this bug.
Description snowboard975 2020-12-27 10:36:12 UTC
Description:
Zero on y axis of a graph in Libreoffice Calc is not shown as zero but as a very small number that contains many digits such as 2.7755576156289E-17. 

Steps to Reproduce:
1. Input the following values in the range A1:B3 of a sheet in Calc: 
   X    Y
   A  -0.1
   B  0.09
2. Select the range A1:B3 and click the icon of "insert chart" on the toolbar, and click the finish button.
3. Double click the y axis to open a window to modify the scale. Click the checkbox "Automatic" on the right side of Maximum on the scale tab.
4. Change the maximum value from 0.15 to 0.1. Click OK. 

Actual Results:
Zero value on the y axis is shown as 2.7755576156289E-17.


Expected Results:
Zero value on the y axis should be shown as zero exactly.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Sometimes, it is necessary to adjust scales of multiple graphs to match their scales into one for easy comparisons. When this bug occurs, it becomes very difficult and cumbersome to detour this problem by trying many different scales to avoid this problem.
Comment 1 snowboard975 2020-12-27 10:38:19 UTC
Created attachment 168506 [details]
Zero on the y axis is not displayed as zero but as a very small number

This is the spreadsheet that reproduces the reported bug.
Comment 2 Martin Srdoš 2020-12-27 16:59:00 UTC
Hello Snowboard,

Thank you for reporting the bug. I can confirm that the bug is present in master.

Version: 7.2.0.0.alpha0+ (x64)
Build ID: a63caf49958b40e33e0d7aaedbe6424f78ecdc46
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: en-US
Calc: threaded

Also in 

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 QA Administrators 2022-12-30 03:28:17 UTC Comment hidden (obsolete)
Comment 4 BogdanB 2024-12-15 18:12:26 UTC
Also in
Version: 24.8.3.2 (X86_64) / LibreOffice Community
Build ID: 48a6bac9e7e268aeb4c3483fcf825c94556d9f92
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded