masterofdestiny

Results 5 comments of masterofdestiny

What would be format of subchart_data . I am passing a touple and getting error . File "C:\Python27\lib\site-packages\pptx\chart\xmlwriter.py", line 1222, in _ser_xml 'ser_idx': series.index, AttributeError: 'int' object has no attribute...

Hi I saw it and based on that here is my entire code, ``` from pptx import Presentation from pptx.dml.color import RGBColor from pptx.chart.data import ChartData from pptx.enum.chart import XL_CHART_TYPE...

Please check the above full code I have updated. Please take any local ppt file .

I am sorry since my code was into the big file so I could not copy it however I just ran everything seperately and updated code exactly you should be...

I did below but getting another issue TypeError: 'Chart' object is not iterable. subchart_data = chart #add chart to slide -------------------- chart.add_subchart( XL_CHART_TYPE.XY_SCATTER, subchart_data, [ chart._chartSpace.plotArea.xpath("c:catAx/c:axId/@val"), chart._chartSpace.plotArea.xpath("c:valAx/c:axId/@val") ] ) On...