Bug 158216 - donut chart : space parameter between nested donuts
Summary: donut chart : space parameter between nested donuts
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart-Enhancements Pie-and-Donut
  Show dependency treegraph
 
Reported: 2023-11-14 20:11 UTC by Jérôme
Modified: 2024-10-16 17:47 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
On the left the nested donuts as they exist. On the right the nested donuts with a space. (26.64 KB, image/png)
2023-11-14 20:11 UTC, Jérôme
Details
sample ODS showing effect of increasing chart:pie-offset value (33.29 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-11-29 10:26 UTC, Stéphane Guillou (stragu)
Details
sample ODS showing effect of increasing chart:pie-offset value (41.10 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-11-29 10:27 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jérôme 2023-11-14 20:11:08 UTC
Created attachment 190830 [details]
On the left the nested donuts as they exist. On the right the nested donuts with a space.

I would like to specify a space parameter between the nested donuts.

This make easier the labels layout (possibly by hand).
Comment 1 Stéphane Guillou (stragu) 2023-11-29 10:25:52 UTC
Thanks for the report, Jérôme

There is an "exploded donut" chart type that automatically includes space between the two donuts, but neither the exploded nor normal types allow changing that spacing, it seems.

In the object's content.xml, there is a chart:pie-offset[1] property that is set to 50 (i.e., 50% of the width of the thickness of the ring). Increasing this value does increase the spacing but also messes up the slices and results in a inaccurate outer ring.

[1]: https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/OpenDocument-v1.3-os-part3-schema.html#__RefHeading__1419510_253892949

Regina, do you think such an enhacement can be supported currently by ODF?

Tested with:

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 5589659829f8a1cef8ca1c8a468732105bbe231b
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 2 Stéphane Guillou (stragu) 2023-11-29 10:26:29 UTC Comment hidden (obsolete)
Comment 3 Stéphane Guillou (stragu) 2023-11-29 10:27:38 UTC
Created attachment 191111 [details]
sample ODS showing effect of increasing chart:pie-offset value
Comment 4 Jérôme 2023-11-29 17:47:40 UTC
The problem is that existing "exploded donuts" don't maintain the circular shape of each donut. The circular shape makes it easier to perceive proportions.
Comment 5 Eyal Rozenberg 2024-01-14 22:44:26 UTC
This would be particularly useful also for "refined-doughnut" charts, if we had them (I just filed bug 159180...)