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>
Created attachment 192106 [details] chartLeaderLines_word2010.pdf: how it looks in the program that created the chart
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"/>
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