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
| 13 | |
| 14 | |
| 15 | class 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) |
no outgoing calls
searching dependent graphs…