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

Method add_data_point

src/pptx/chart/data.py:642–649  ·  view source on GitHub ↗

Return a CategoryDataPoint object newly created with value *value*, an optional *number_format*, and appended to this sequence.

(self, value, number_format=None)

Source from the content-addressed store, hash-verified

640 """
641
642 def add_data_point(self, value, number_format=None):
643 """
644 Return a CategoryDataPoint object newly created with value *value*,
645 an optional *number_format*, and appended to this sequence.
646 """
647 data_point = CategoryDataPoint(self, value, number_format)
648 self.append(data_point)
649 return data_point
650
651 @property
652 def categories(self):

Callers 1

add_seriesMethod · 0.95

Calls 2

CategoryDataPointClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected