1[ 2 { 3 "name": "chart_shapes", 4 "expr": "[[s.ShapeType, getattr(s, 'String', None)] for s in [doc.Sheets.getByIndex(0).Charts.getByIndex(0).EmbeddedObject.DrawPage.getByIndex(i) for i in range(doc.Sheets.getByIndex(0).Charts.getByIndex(0).EmbeddedObject.DrawPage.Count)]]", 5 "expect": [ 6 [ 7 "com.sun.star.drawing.GroupShape", 8 null 9 ], 10 [ 11 "com.sun.star.drawing.PolyLineShape", 12 "" 13 ], 14 [ 15 "com.sun.star.drawing.RectangleShape", 16 "rect" 17 ], 18 [ 19 "com.sun.star.drawing.TextShape", 20 "note" 21 ] 22 ] 23 }, 24 { 25 "name": "chart_type", 26 "expr": "doc.Sheets.getByIndex(0).Charts.getByIndex(0).EmbeddedObject.getDiagram().getDiagramType()", 27 "expect": "com.sun.star.chart.BarDiagram" 28 } 29] 30