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

Class ChartFormat

src/pptx/dml/chtfmt.py:15–40  ·  view source on GitHub ↗

The |ChartFormat| object provides access to visual shape properties for chart elements like |Axis|, |Series|, and |MajorGridlines|. It has two properties, :attr:`fill` and :attr:`line`, which return a |FillFormat| and |LineFormat| object respectively. The |ChartFormat| object is

Source from the content-addressed store, hash-verified

13
14
15class ChartFormat(ElementProxy):
16 """
17 The |ChartFormat| object provides access to visual shape properties for
18 chart elements like |Axis|, |Series|, and |MajorGridlines|. It has two
19 properties, :attr:`fill` and :attr:`line`, which return a |FillFormat|
20 and |LineFormat| object respectively. The |ChartFormat| object is
21 provided by the :attr:`format` property on the target axis, series, etc.
22 """
23
24 @lazyproperty
25 def fill(self):
26 """
27 |FillFormat| instance for this object, providing access to fill
28 properties such as fill color.
29 """
30 spPr = self._element.get_or_add_spPr()
31 return FillFormat.from_fill_parent(spPr)
32
33 @lazyproperty
34 def line(self):
35 """
36 The |LineFormat| object providing access to the visual properties of
37 this object, such as line color and line style.
38 """
39 spPr = self._element.get_or_add_spPr()
40 return LineFormat(spPr)

Callers 9

formatMethod · 0.90
formatMethod · 0.90
formatMethod · 0.90
formatMethod · 0.90
formatMethod · 0.90
formatMethod · 0.90
formatMethod · 0.90
fill_fixtureMethod · 0.90
line_fixtureMethod · 0.90

Calls

no outgoing calls

Tested by 2

fill_fixtureMethod · 0.72
line_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…