Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Finding the position of chart labels

$
0
0

I have an application that allows users (among other things) to align objects to chart labels.  This app was originally written to function in COM where I was able to ask PowerPoint for Label.Left and Label.Top to get the position.  I have rewritten this app to work natively on the OpenXML files (.pptx, xlsx etc) and to my dismay it seems that the OpenXML does not store the label position - obviously it is dynamically rendered at display time by PowerPoint.

What I was looking for would have been in the Chart Part "/ppt/charts/chartn.xml" and would have been something like (for a Bar Chart):

/c:chartSpace/c:chart/c:plotArea/c:barChart/c:ser/c:dLbls/c:dLbl/p:xfrm with a:off and a:ext nodes. (Obviously the xfrm would have been in the c namespace).

Can you help me with any way to find out the X and Y position of the labels on a chart from the OpenXML?

TIA

Richard Teller


Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>