labels = Reference(...) series = Series(ys, xs, title='data') series.labels = DataLabelList([DataLabel(idx=idx) for idx, lbl in enumerate(labels.cells)])
<c:dLbl> <c:idx val="0" /> <c:layout /> <c:tx> <c:rich> <a:bodyPr /> <a:lstStyle /> <a:p> <a:fld id="{5D592397-7022-4963-9D53-802D0D2DAAF4}" type="CELLRANGE"> <a:rPr lang="en-US" /> <a:pPr /> <a:t>[CELLRANGE]</a:t> </a:fld> <a:endParaRPr lang="en-US" /> </a:p> </c:rich> </c:tx> ...</c:dLbl>
<dLbl> <idx val="0" /> <txPr> <a:bodyPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" /> <a:p xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"> <a:r> <a:t /> </a:r> <fld id="{f73f9bbb-e9fd-42a9-aaa0-80a420ab07a9}" t="[CELLRANGE]" type="CELLRANGE" /> </a:p> </txPr></dLbl>
... <c:extLst> <c:ext xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart" uri="{02D57815-91ED-43cb-92C2-25804820EDAC}"> <c15:datalabelsRange> <c15:f>Sheet1!$A$1:$A$5</c15:f> <c15:dlblRangeCache> ... </c15:dlblRangeCache> </c15:datalabelsRange> </c:ext> </c:extLst></c:ser>
And by the way I am also trying to implement the feature of adding labels by 'value from cell' into the graph by using openpyxl. Would love to know if you succeeded in this.
--
You received this message because you are subscribed to a topic in the Google Groups "openpyxl-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpyxl-users/KJ-BwlrFYbg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpyxl-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpyxl-users/0df455bf-d396-46f1-8bc5-2564779c7217n%40googlegroups.com.