MCPcopy Create free account
hub / github.com/scanny/python-pptx / BubbleChartData

Class BubbleChartData

src/pptx/chart/data.py:710–740  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

708
709
710class 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
743class XySeriesData(_BaseSeriesData):

Calls

no outgoing calls

Tested by 5

populate_fixtureMethod · 0.72
bubbleSize_fixtureMethod · 0.72
rewrite_fixtureMethod · 0.72
make_bubble_chart_dataFunction · 0.72
add_series_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…