Bug 161927 - Pie charts with very large number of values should expand to show the full chart
Summary: Pie charts with very large number of values should expand to show the full chart
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Pie-and-Donut
  Show dependency treegraph
 
Reported: 2024-07-06 09:18 UTC by Eyal Rozenberg
Modified: 2024-10-15 21:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Calc document exhibiting the bug (80.45 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-07-06 09:18 UTC, Eyal Rozenberg
Details
Screenshot of document 195139 after clearing the row filter (447.46 KB, image/png)
2024-07-06 09:25 UTC, Eyal Rozenberg
Details
Sample file with the chart enlarged. (139.45 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-07-06 13:36 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-07-06 09:18:14 UTC
Created attachment 195139 [details]
Calc document exhibiting the bug

What happens when you create a pie chart with hundreds of slices?

Reasonable behavior could be really tiny slices, some sort of bunching of small slices together, or even a blank chart or an error messages. But - that's not what I get with the attached document...

1. Open the attached document.
2. Choose the PivotTable sheet.
3. Click the Opened column menubutton
4. Click All
5. Click the Ok button

Expected result:
One of the options above

Actual result:
Weird rows of junk. Zooming in, it seems it's a tiny-width legend that takes up the entire chart area and is illegible.
Comment 1 Eyal Rozenberg 2024-07-06 09:25:59 UTC
Created attachment 195140 [details]
Screenshot of document 195139 after clearing the row filter
Comment 2 m_a_riosv 2024-07-06 13:36:08 UTC
Created attachment 195143 [details]
Sample file with the chart enlarged.

It is a matter of space for representation.
If you enlarge the size of the chart enough, it will be displayed correctly.

I don't find it a bug, not everything you like can be.
Comment 3 Eyal Rozenberg 2024-07-06 17:29:13 UTC
(In reply to m_a_riosv from comment #2)
> It is a matter of space for representation.

Indeed, it is a matter of space for representation. But:

1. When there's not enough space to do the rendering we want - we either have to adapt, or not render at all. We can't assume that there is enough space and end up showing junk.

2. One could (and perhaps should) make the argument that the chart size does not matter. A chart is not a raster image, it is a vectorized/parameteric generated graphic. So regardless of the size, some part of the chart should be the chart "body", some part should be the legend, some part should be the axes (no axes in a pie chart), the title etc. The legend can't be so "imperialistic" that it takes over the whole area. Plus, even the "imperialistic" legend has a very weird scaling logic - horizontally compressed, but not vertically.
Comment 4 Buovjaga 2024-08-29 05:18:57 UTC
It doesn't adapt its size even when created from scratch. Already in oldest of 43all repo.