Provides access to the properties of an individual data point in a series, such as the visual properties of its marker and the text and font of its data label.
| 52 | |
| 53 | |
| 54 | class Point(object): |
| 55 | """ |
| 56 | Provides access to the properties of an individual data point in |
| 57 | a series, such as the visual properties of its marker and the text and |
| 58 | font of its data label. |
| 59 | """ |
| 60 | |
| 61 | def __init__(self, ser, idx): |
| 62 | super(Point, self).__init__() |
| 63 | self._element = ser |
| 64 | self._ser = ser |
| 65 | self._idx = idx |
| 66 | |
| 67 | @lazyproperty |
| 68 | def data_label(self): |
| 69 | """ |
| 70 | The |DataLabel| object representing the label on this data point. |
| 71 | """ |
| 72 | return DataLabel(self._ser, self._idx) |
| 73 | |
| 74 | @lazyproperty |
| 75 | def format(self): |
| 76 | """ |
| 77 | The |ChartFormat| object providing access to the shape formatting |
| 78 | properties of this data point, such as line and fill. |
| 79 | """ |
| 80 | dPt = self._ser.get_or_add_dPt_for_point(self._idx) |
| 81 | return ChartFormat(dPt) |
| 82 | |
| 83 | @lazyproperty |
| 84 | def marker(self): |
| 85 | """ |
| 86 | The |Marker| instance for this point, providing access to the visual |
| 87 | properties of the data point marker, such as fill and line. Setting |
| 88 | these properties overrides any value set at the series level. |
| 89 | """ |
| 90 | dPt = self._ser.get_or_add_dPt_for_point(self._idx) |
| 91 | return Marker(dPt) |
| 92 | |
| 93 | |
| 94 | class XyPoints(_BasePoints): |
no outgoing calls
searching dependent graphs…