|
7 | 7 | from __future__ import absolute_import, print_function, unicode_literals |
8 | 8 |
|
9 | 9 | from collections import Sequence |
| 10 | +from warnings import warn |
10 | 11 |
|
11 | 12 | from ..dml.chtfmt import ChartFormat |
12 | 13 | from ..dml.fill import FillFormat |
@@ -110,10 +111,17 @@ class BarSeries(_BaseCategorySeries): |
110 | 111 | """ |
111 | 112 | @lazyproperty |
112 | 113 | def fill(self): |
| 114 | + """**DEPRECATED**. Use `.format.fill` instead. |
| 115 | +
|
| 116 | + Return the |FillFormat| object providing access to fill properties |
| 117 | + such as fill color. |
113 | 118 | """ |
114 | | - |FillFormat| instance for this series, providing access to fill |
115 | | - properties such as fill color. |
116 | | - """ |
| 119 | + msg = ( |
| 120 | + 'BarSeries.fill property is deprecated and will be removed in a ' |
| 121 | + 'future release.' |
| 122 | + ) |
| 123 | + warn(msg, UserWarning, stacklevel=2) |
| 124 | + |
117 | 125 | spPr = self._element.get_or_add_spPr() |
118 | 126 | return FillFormat.from_fill_parent(spPr) |
119 | 127 |
|
@@ -150,10 +158,17 @@ def invert_if_negative(self, value): |
150 | 158 |
|
151 | 159 | @lazyproperty |
152 | 160 | def line(self): |
| 161 | + """**DEPRECATED**. Use `.format.line` instead. |
| 162 | +
|
| 163 | + Return the |LineFormat| object providing access to line properties |
| 164 | + such as line color and width. |
153 | 165 | """ |
154 | | - |LineFormat| instance for this shape, providing access to line |
155 | | - properties such as line color and width. |
156 | | - """ |
| 166 | + msg = ( |
| 167 | + 'BarSeries.line property is deprecated and will be removed in a ' |
| 168 | + 'future release.' |
| 169 | + ) |
| 170 | + warn(msg, UserWarning, stacklevel=2) |
| 171 | + |
157 | 172 | return LineFormat(self) |
158 | 173 |
|
159 | 174 | @property |
|
0 commit comments