A specialized ChartData object suitable for use with a bubble chart. A bubble chart is essentially an XY chart where the markers are scaled to provide a third quantitative dimension to the exhibit.
| 708 | |
| 709 | |
| 710 | class BubbleChartData(XyChartData): |
| 711 | """ |
| 712 | A specialized ChartData object suitable for use with a bubble chart. |
| 713 | A bubble chart is essentially an XY chart where the markers are scaled to |
| 714 | provide a third quantitative dimension to the exhibit. |
| 715 | """ |
| 716 | |
| 717 | def add_series(self, name, number_format=None): |
| 718 | """ |
| 719 | Return a |BubbleSeriesData| object newly created and added at the end |
| 720 | of this sequence, and having series named *name* and values formatted |
| 721 | with *number_format*. |
| 722 | """ |
| 723 | series_data = BubbleSeriesData(self, name, number_format) |
| 724 | self.append(series_data) |
| 725 | return series_data |
| 726 | |
| 727 | def bubble_sizes_ref(self, series): |
| 728 | """ |
| 729 | The Excel worksheet reference for the range containing the bubble |
| 730 | sizes for *series*. |
| 731 | """ |
| 732 | return self._workbook_writer.bubble_sizes_ref(series) |
| 733 | |
| 734 | @lazyproperty |
| 735 | def _workbook_writer(self): |
| 736 | """ |
| 737 | The worksheet writer object to which layout and writing of the Excel |
| 738 | worksheet for this chart will be delegated. |
| 739 | """ |
| 740 | return BubbleWorkbookWriter(self) |
| 741 | |
| 742 | |
| 743 | class XySeriesData(_BaseSeriesData): |
no outgoing calls
searching dependent graphs…