Bug 161800 - I/O of "# of values in second plot" parameter for bar/pie of pie is not supported
Summary: I/O of "# of values in second plot" parameter for bar/pie of pie is not suppo...
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: kurt.nordback@protonmail.com
URL:
Whiteboard: target:25.2.0
Keywords: filter:ooxml
Depends on:
Blocks: OOXML-Chart Pie-and-Donut
  Show dependency treegraph
 
Reported: 2024-06-26 19:46 UTC by kurt.nordback@protonmail.com
Modified: 2024-11-26 06:28 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test case (15.23 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2024-06-26 20:02 UTC, kurt.nordback@protonmail.com
Details
MSO rendering of test case (24.95 KB, image/png)
2024-06-26 20:04 UTC, kurt.nordback@protonmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kurt.nordback@protonmail.com 2024-06-26 19:46:28 UTC
Description:
A parameter for bar/pie of pie charts specifying how many values go in the second plot is now supported (pending approval). Currently input/output of this parameter to/from OOXML (which supports it) and ODF (which doesn't currently support it) is not implemented.

Steps to Reproduce:
1. Load the attached file "pie-of-pie-9-values-in-2nd.xlsx" into LO
2. Rendering should look like "pie-of-pie-9-values-in-2nd-rendered.png" -- but it doesn't.
3. Open the sidebar, click on the chart, and increase the "# of values in second plot" to 9. The chart should now look more or less like the MSO rendering.
4. Save as ODF and re-open. Again the number of values in the right-hand chart is reset.

Actual Results:
# of values in second plot is not preserved through save-and-open

Expected Results:
Should look like "pie-of-pie-9-values-in-2nd-rendered.png"


Reproducible: Always


User Profile Reset: No

Additional Info:
Pending https://gerrit.libreoffice.org/c/core/+/168690
Comment 1 kurt.nordback@protonmail.com 2024-06-26 20:02:52 UTC
Created attachment 194988 [details]
test case
Comment 2 kurt.nordback@protonmail.com 2024-06-26 20:04:10 UTC
Created attachment 194989 [details]
MSO rendering of test case
Comment 3 Stéphane Guillou (stragu) 2024-06-27 11:00:34 UTC
Reproduced that the number of slices in subchart coming from OOXML is not respected in:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c8f72c2a3a7b347c54089d96b0794b4586022688
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded
Comment 4 Stéphane Guillou (stragu) 2024-06-27 11:13:32 UTC
Hm I guess this is the same as bug 161229, right?
Comment 5 Commit Notification 2024-11-26 00:34:39 UTC
Kurt Nordback committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b10d331c1c9801adbf6d014d9348bb0a4dad3d2c

tdf#161800 -  I/O of '# of values in second plot' parameter not supported

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Regina Henschel 2024-11-26 06:28:07 UTC
Data type and naming of new 'SplitPos' is inconsistent. Some places are commented in the patch.

BTW, please do not forget to add the new attributes to https://wiki.documentfoundation.org/Development/ODF_Implementer_Notes/List_of_LibreOffice_ODF_Extensions when the implementation is finished.