Bug 115168 - Legend not displayed when creating a pie chart with only two cells
Summary: Legend not displayed when creating a pie chart with only two cells
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
4.2.8.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart-Legends
  Show dependency treegraph
 
Reported: 2018-01-23 10:51 UTC by Yassine Chaouche
Modified: 2020-03-12 06:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
printscreen (22.61 KB, image/png)
2018-01-23 19:20 UTC, raal
Details
Screenshot from current master (111.36 KB, image/png)
2020-03-12 06:42 UTC, Gabor Kelemen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yassine Chaouche 2018-01-23 10:51:15 UTC
Description:
To reproduce this bug : 
in A1, type A
in A2, type 1

Select A1 and A2, then create a pie chart. Leave all defaults (display legend at the right).

Desired result
--------------
pie chart with legends and chart correctly displayed

Actual result
-------------
An empty, blank legend covers the chart, which is the combination of 4 problems actually : 

1. Position : the legend isn't where it should be (on the right by default)
2. Size : the legend is too big
3. SIze : it is in fact so big that the pie chart can't be seen
3. Content : the legend is blank




Steps to Reproduce:
To reproduce this bug : 
in A1, type A
in A2, type 1

Select A1 and A2, then create a pie chart. Leave all defaults (display legend at the right).

Actual Results:  
An empty, blank legend covers the chart, which is the combination of 4 problems actually : 

1. Position : the legend isn't where it should be (on the right by default)
2. Size : the legend is too big
3. SIze : it is in fact so big that the pie chart can't be seen
3. Content : the legend is blank

Expected Results:
Pie chart with legends and chart correctly displayed


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Comment 1 Yassine Chaouche 2018-01-23 10:53:59 UTC
Screencast available here : https://vimeo.com/252308142

Users have reported the same for libreoffice 6.
Comment 2 raal 2018-01-23 19:20:58 UTC
Created attachment 139305 [details]
printscreen

No repro with Version: 6.1.0.0.alpha0+
Build ID: 3d30a39ee92678f6a4e71bd450fc044636adedab
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3; 

Seems to be fixed in dev version. Please could you test with dev version?
http://dev-builds.libreoffice.org/daily/master/
Thank you
Comment 3 Yassine Chaouche 2018-01-24 08:36:31 UTC
Sorry the steps to reproduce were wrong. Instead of :

in A1, type A
in A2, type 1

It should be : 

in A1, type A
in B1, type 1

Then procede with creating a pie chart off A1 and B1.

Sorry for misleading instructions.
Yassine.
Comment 4 raal 2018-01-24 19:32:57 UTC
I can confirm with Version: 6.1.0.0.alpha0+
Build ID: 3d30a39ee92678f6a4e71bd450fc044636adedab
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3;
Comment 5 QA Administrators 2019-01-25 03:49:00 UTC Comment hidden (obsolete)
Comment 6 Yassine Chaouche 2019-01-27 10:19:33 UTC
Bug persists in 6.1



Version: 6.1.4.2
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: kde4; 
Locale: fr-FR (en_US.UTF-8); Calc: CL


Screencast : https://vimeo.com/313628909
Comment 7 Gabor Kelemen 2020-03-12 06:42:51 UTC
Created attachment 158640 [details]
Screenshot from current master

Much better in bibisect-linux-64-6.5 :


Version: 7.0.0.0.alpha0+
Build ID: a11c10a83f6fceae6cfb519725d06f8eaf1013fb
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: hu-HU (hu_HU.UTF-8); UI-Language: en-US
Calc: threaded

One problem remains: there is no legend entry when there is only one data point. Other chart types have legend entry with the same data range (except Stock, interestingly).