Bug 159330 - FILEOPEN: MSO charts can separately define the color of the connecting leaderLine
Summary: FILEOPEN: MSO charts can separately define the color of the connecting leader...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 157496
Blocks: Chart-Enhancements
  Show dependency treegraph
 
Reported: 2024-01-22 18:13 UTC by Justin L
Modified: 2024-05-28 14:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
chartLeaderLines.docx: interesting option to do gradient leaderLines... (23.65 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-01-22 18:13 UTC, Justin L
Details
chartLeaderLines_word2010.pdf: how it looks in the program that created the chart (90.06 KB, application/pdf)
2024-01-22 18:15 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2024-01-22 18:13:10 UTC
Created attachment 192105 [details]
chartLeaderLines.docx: interesting option to do gradient leaderLines...

LibreOffice just assigns the color of the Data Labels to the leaderLine, but in OOXML the connector line's color can be specified individually as:
<c:leaderLines>
  <c:spPr>
    <a:ln>
      <a:solidFill>
        <a:schemeClr val="accent6">
          <a:lumMod val="75000"/>
        </a:schemeClr>
      </a:solidFill>
    </a:ln>
  </c:spPr>
</c:leaderLines>
Comment 1 Justin L 2024-01-22 18:15:20 UTC
Created attachment 192106 [details]
chartLeaderLines_word2010.pdf: how it looks in the program that created the chart
Comment 2 Justin L 2024-01-22 18:52:35 UTC
LO needs to be extended to support separate formatting of the leaderLine.

Currently the leaderLine uses the color from the chart:series style:style, where:
<style:text-properties fo:color="#c3d69b"/>
Comment 3 Justin L 2024-01-23 16:00:10 UTC
Summary: Functionality is missing for importing/configuring the leaderLine between the Data Label and the pie chart slice. The current implementation simply draws a default line using the color of the Data Labels. This is a 6+ week project.

Extend LO document model
    • the leaderLines need to support the full range of line properties, so chart:series needs something like chart:leaderLine-style containing a chart:connector.

UNO API
    • scripting read/write for these properties

ODF filters
    • since after OOXML import, the properties are exported/re-imported using ODF filters before being displayed, ODF support is essential.
        ◦ import
        ◦ export

OOXML filters
    • Only DOCX is needed since DOC and RTF simply import these as alternative-format images

Layout
    • the layout will take significant effort to create, because it seems to be unique, so there won’t be example code to copy from.
        ◦ is a single transparent overlay across the entire chart
        ◦ color (gradient/bitmap/hatch) need to be applied to the overlay as a whole.
        ◦ leaderLines are masked onto the layer, removing the transparency and letting the color peak out.

Unit tests
    • Ideally every feature commit has matching unit tests. Additionally, one or two larger, comprehensive unit tests will be required.

UI
    • this should not be too much work. It is just a collection of existing attributes (area, transparency, lines) but there are many pieces to wire together.

Documentation
    • update help.git, release notes

Specification
    • make sure this gets into ODF next