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

Class CategoryDataPoint

src/pptx/chart/data.py:804–820  ·  view source on GitHub ↗

A data point in a category chart series. Provides access to the value of the datapoint and the number format with which it should appear in the Excel file.

Source from the content-addressed store, hash-verified

802
803
804class CategoryDataPoint(_BaseDataPoint):
805 """
806 A data point in a category chart series. Provides access to the value of
807 the datapoint and the number format with which it should appear in the
808 Excel file.
809 """
810
811 def __init__(self, series_data, value, number_format):
812 super(CategoryDataPoint, self).__init__(series_data, number_format)
813 self._value = value
814
815 @property
816 def value(self):
817 """
818 The (Y) value for this category data point.
819 """
820 return self._value
821
822
823class XyDataPoint(_BaseDataPoint):

Callers 3

value_fixtureMethod · 0.90
add_data_pointMethod · 0.85

Calls

no outgoing calls

Tested by 2

value_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…