MCPcopy Create free account
hub / github.com/scanny/python-pptx / CT_DPt

Class CT_DPt

src/pptx/oxml/chart/series.py:36–65  ·  view source on GitHub ↗

`` `` custom element class, containing visual properties for a data point.

Source from the content-addressed store, hash-verified

34
35
36class CT_DPt(BaseOxmlElement):
37 """
38 ``<c:dPt>`` custom element class, containing visual properties for a data
39 point.
40 """
41
42 _tag_seq = (
43 "c:idx",
44 "c:invertIfNegative",
45 "c:marker",
46 "c:bubble3D",
47 "c:explosion",
48 "c:spPr",
49 "c:pictureOptions",
50 "c:extLst",
51 )
52 idx = OneAndOnlyOne("c:idx")
53 marker = ZeroOrOne("c:marker", successors=_tag_seq[3:])
54 spPr = ZeroOrOne("c:spPr", successors=_tag_seq[6:])
55 del _tag_seq
56
57 @classmethod
58 def new_dPt(cls):
59 """
60 Return a newly created "loose" `c:dPt` element containing its default
61 subtree.
62 """
63 dPt = OxmlElement("c:dPt")
64 dPt.append(OxmlElement("c:idx"))
65 return dPt
66
67
68class CT_Lvl(BaseOxmlElement):

Callers

nothing calls this directly

Calls 2

OneAndOnlyOneClass · 0.90
ZeroOrOneClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…