Bug 162160 - Poor data label rendering strategy with high number of slices in pie chart
Summary: Poor data label rendering strategy with high number of slices in pie chart
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Pie-and-Donut
  Show dependency treegraph
 
Reported: 2024-07-23 14:19 UTC by Eyal Rozenberg
Modified: 2024-10-22 23:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of a pie chart with data labels and 100 slices (66.48 KB, image/png)
2024-07-23 14:19 UTC, Eyal Rozenberg
Details
Alternative plots (151.26 KB, image/png)
2024-09-09 08:35 UTC, Heiko Tietze
Details
Document with chart exhibiting the problem (86.90 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-10-22 22:20 UTC, Eyal Rozenberg
Details
Rendering with data label placement "outside" (79.53 KB, image/png)
2024-10-22 23:00 UTC, kurt.nordback@protonmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-07-23 14:19:53 UTC
Created attachment 195454 [details]
Screenshot of a pie chart with data labels and 100 slices

When a pie chart has a high number of slices with a skewed distribution (e.g. 100 slices, but with 4-5 big slices covering most of the pie), our "strategy" for rendering outer data labels and their callouts - fails; see screenshot.

At some point we should start either dropping the callouts, or grouping, or saying ... , or something.
Comment 1 Buovjaga 2024-09-09 05:35:05 UTC
UX team can innovate on the strategy.
Comment 2 Heiko Tietze 2024-09-09 08:35:59 UTC
Created attachment 196326 [details]
Alternative plots

Left is Excel, right R. While using an elaborated placement algorithm with nice connectors looks nifty, a simple overwrite is acceptable too. In most cases those pointless information are rather removed from the plot and we may consider this option too.
Comment 3 Justin L 2024-09-09 10:46:37 UTC
There is no example document attached...
Comment 4 Eyal Rozenberg 2024-10-22 22:20:38 UTC
Created attachment 197196 [details]
Document with chart exhibiting the problem

A document with a chart exhibiting the issue (not the exact same chart as in 195454, but the problem is the same).
Comment 5 kurt.nordback@protonmail.com 2024-10-22 23:00:00 UTC
Created attachment 197198 [details]
Rendering with data label placement "outside"

Agree that as shown, the rendering is ugly. The attachment uses the placement strategy "best fit". Changing the placement strategy to "outside" results in the rendering as shown in data_label_placement_outside.png, which is similar to what's in one of the other images, and seems to be considered preferable.