Bug 131189 - Cannot Format Data Label from PPTX chart
Summary: Cannot Format Data Label from PPTX chart
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:pptx, regression
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2020-03-06 14:39 UTC by Timur
Modified: 2024-03-02 12:32 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2020-03-06 14:39:28 UTC
1. open PPTX like attachment 158424 [details]
2. double click in chart to edit
3. select 1st click all labels or 2nd click single label
4. right-click "Format data labels" or "Format single data label"
5. change font effect like color

Doesn't work from 6.1. Regression. Tested with PPTX, looks OK with ODP, to test PPT. And to test other effects and settings in other tabs.
Comment 1 Karl Urban 2020-03-07 05:16:56 UTC Comment hidden (spam)
Comment 2 Timur 2020-03-08 11:17:07 UTC Comment hidden (obsolete)
Comment 3 Xisco Faulí 2020-03-09 11:02:10 UTC Comment hidden (obsolete)
Comment 4 Timur 2020-03-13 10:30:08 UTC
 7035c56b241b47056bc8cd342ff93b3c3f855ba1 is the first bad commit
commit 7035c56b241b47056bc8cd342ff93b3c3f855ba1
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Jan 30 01:13:28 2018 +0100

    source 790f9abeb1a1167ad5ab84c5fb855b36669c125b

Previous commit 0e3384ac4a55490726633f48d798b28b3957b87d (HEAD, refs/bisect/good-0e3384ac4a55490726633f48d798b28b3957b87d)
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Mon Jan 29 22:36:07 2018 +0100

    source a1f933ee2b9e23a505d937035821e9571cf4119c

Single.

author	Szymon Kłos <szymon.klos@collabora.com>	2018-01-04 22:15:32 +0100
committer	Szymon Kłos <szymon.klos@collabora.com>	2018-01-29 23:49:42 +0100
commit 790f9abeb1a1167ad5ab84c5fb855b36669c125b (patch)
tree dea7c957b67be7518d2092614b82f18148817265
parent a1f933ee2b9e23a505d937035821e9571cf4119c (diff)
tdf#114821 import complex data labels in bar chart
* import static text & fields:
   VALUE, SERIESNAME, COLUMNNAME
* text is formatted
* DataPointCustomLabelField with field type
  (DataPointCustomLabelFieldType) was introduced.
* text can have many portions & multiple lines
* unit tests for import data labels with formatting

Not implemented: CELLREF field support which needs
importing some additional data from extLst

Shows custom text as a label for data points.

Change-Id: Iba8fd508eb16356b05586b93d7b8da32240d2b91
Reviewed-on: https://gerrit.libreoffice.org/48243
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Comment 5 Timur 2020-03-13 10:34:49 UTC
Let's mark as a duplicate because it's the same commit, although bug is reproduced differently. 

Note: This is only for "Format single data label".

Mass "Format data labels" for fonts size and color didn't work from before, repro 3.5 (rotation and border work). ImplementationError. Another bug, unless resolved together.

*** This bug has been marked as a duplicate of bug 114821 ***
Comment 6 Timur 2020-03-13 10:35:26 UTC Comment hidden (obsolete)
Comment 7 Timur 2020-09-18 08:59:47 UTC
Still in 7.1+.
Comment 8 Regina Henschel 2020-09-18 11:57:18 UTC
The labels in the referenced pptx file are not purely generated from category, value,... But they contain text, that was entered by the user. Those texts were lost in older versions. Since 6.1 the text is imported in CustomLableFields, a sequence of DataPointCustomLabelField (see API reference). According description in API is should support the com::sun::star::style::CharacterProperties service. But that seems to be not fully implemented. I can see the properties in the Basic IDE, but changing via macro does not work.

For export to odp the code has a "TODO add style" comment about missing Font related properties (SchXMLExport.cxx#3486).

The problem happens, if font properties were set on a single data label in PowerPoint. If you remove the direct formatting in PowerPoint, setting font properties in LibreOffice will work.
Comment 9 QA Administrators 2024-03-02 03:15:46 UTC Comment hidden (spam)