The data specific to a particular Bubble chart series. It provides access to the series label, the series data points, and an optional number format to be applied to each data point not having a specified number format. The sequence of data points in a bubble chart series is ma
| 763 | |
| 764 | |
| 765 | class BubbleSeriesData(XySeriesData): |
| 766 | """ |
| 767 | The data specific to a particular Bubble chart series. It provides access |
| 768 | to the series label, the series data points, and an optional number |
| 769 | format to be applied to each data point not having a specified number |
| 770 | format. |
| 771 | |
| 772 | The sequence of data points in a bubble chart series is maintained |
| 773 | throughout the chart building process because a data point has no unique |
| 774 | identifier and can only be retrieved by index. |
| 775 | """ |
| 776 | |
| 777 | def add_data_point(self, x, y, size, number_format=None): |
| 778 | """ |
| 779 | Append a new BubbleDataPoint object having the values *x*, *y*, and |
| 780 | *size*. The optional *number_format* is used to format the Y value. |
| 781 | If not provided, the number format is inherited from the series data. |
| 782 | """ |
| 783 | data_point = BubbleDataPoint(self, x, y, size, number_format) |
| 784 | self.append(data_point) |
| 785 | return data_point |
| 786 | |
| 787 | @property |
| 788 | def bubble_sizes(self): |
| 789 | """ |
| 790 | A sequence containing the bubble size for each datapoint in this |
| 791 | series, in data point order. |
| 792 | """ |
| 793 | return [dp.bubble_size for dp in self._data_points] |
| 794 | |
| 795 | @property |
| 796 | def bubble_sizes_ref(self): |
| 797 | """ |
| 798 | The Excel worksheet reference for the range containing the bubble |
| 799 | sizes for this series. |
| 800 | """ |
| 801 | return self._chart_data.bubble_sizes_ref(self) |
| 802 | |
| 803 | |
| 804 | class CategoryDataPoint(_BaseDataPoint): |
no outgoing calls
searching dependent graphs…