A bar chart-style plot.
| 123 | |
| 124 | |
| 125 | class BarPlot(_BasePlot): |
| 126 | """ |
| 127 | A bar chart-style plot. |
| 128 | """ |
| 129 | |
| 130 | @property |
| 131 | def gap_width(self): |
| 132 | """ |
| 133 | Width of gap between bar(s) of each category, as an integer |
| 134 | percentage of the bar width. The default value for a new bar chart is |
| 135 | 150, representing 150% or 1.5 times the width of a single bar. |
| 136 | """ |
| 137 | gapWidth = self._element.gapWidth |
| 138 | if gapWidth is None: |
| 139 | return 150 |
| 140 | return gapWidth.val |
| 141 | |
| 142 | @gap_width.setter |
| 143 | def gap_width(self, value): |
| 144 | gapWidth = self._element.get_or_add_gapWidth() |
| 145 | gapWidth.val = value |
| 146 | |
| 147 | @property |
| 148 | def overlap(self): |
| 149 | """ |
| 150 | Read/write int value in range -100..100 specifying a percentage of |
| 151 | the bar width by which to overlap adjacent bars in a multi-series bar |
| 152 | chart. Default is 0. A setting of -100 creates a gap of a full bar |
| 153 | width and a setting of 100 causes all the bars in a category to be |
| 154 | superimposed. A stacked bar plot has overlap of 100 by default. |
| 155 | """ |
| 156 | overlap = self._element.overlap |
| 157 | if overlap is None: |
| 158 | return 0 |
| 159 | return overlap.val |
| 160 | |
| 161 | @overlap.setter |
| 162 | def overlap(self, value): |
| 163 | """ |
| 164 | Set the value of the ``<c:overlap>`` child element to *int_value*, |
| 165 | or remove the overlap element if *int_value* is 0. |
| 166 | """ |
| 167 | if value == 0: |
| 168 | self._element._remove_overlap() |
| 169 | return |
| 170 | self._element.get_or_add_overlap().val = value |
| 171 | |
| 172 | |
| 173 | class BubblePlot(_BasePlot): |
no outgoing calls
searching dependent graphs…