The data specific to a particular category 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.
| 632 | |
| 633 | |
| 634 | class CategorySeriesData(_BaseSeriesData): |
| 635 | """ |
| 636 | The data specific to a particular category chart series. It provides |
| 637 | access to the series label, the series data points, and an optional |
| 638 | number format to be applied to each data point not having a specified |
| 639 | number format. |
| 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): |
| 653 | """ |
| 654 | The |data.Categories| object that provides access to the category |
| 655 | objects for this series. |
| 656 | """ |
| 657 | return self._chart_data.categories |
| 658 | |
| 659 | @property |
| 660 | def categories_ref(self): |
| 661 | """ |
| 662 | The Excel worksheet reference to the categories for this chart (not |
| 663 | including the column heading). |
| 664 | """ |
| 665 | return self._chart_data.categories_ref |
| 666 | |
| 667 | @property |
| 668 | def values(self): |
| 669 | """ |
| 670 | A sequence containing the (Y) value of each datapoint in this series, |
| 671 | in data point order. |
| 672 | """ |
| 673 | return [dp.value for dp in self._data_points] |
| 674 | |
| 675 | @property |
| 676 | def values_ref(self): |
| 677 | """ |
| 678 | The Excel worksheet reference to the (Y) values for this series (not |
| 679 | including the column heading). |
| 680 | """ |
| 681 | return self._chart_data.values_ref(self) |
| 682 | |
| 683 | |
| 684 | class XyChartData(_BaseChartData): |
no outgoing calls
searching dependent graphs…