A specialized ChartData object suitable for use with an XY (aka. scatter) chart. Unlike ChartData, it has no category sequence. Rather, each data point of each series specifies both an X and a Y value.
| 682 | |
| 683 | |
| 684 | class XyChartData(_BaseChartData): |
| 685 | """ |
| 686 | A specialized ChartData object suitable for use with an XY (aka. scatter) |
| 687 | chart. Unlike ChartData, it has no category sequence. Rather, each data |
| 688 | point of each series specifies both an X and a Y value. |
| 689 | """ |
| 690 | |
| 691 | def add_series(self, name, number_format=None): |
| 692 | """ |
| 693 | Return an |XySeriesData| object newly created and added at the end of |
| 694 | this sequence, identified by *name* and values formatted with |
| 695 | *number_format*. |
| 696 | """ |
| 697 | series_data = XySeriesData(self, name, number_format) |
| 698 | self.append(series_data) |
| 699 | return series_data |
| 700 | |
| 701 | @lazyproperty |
| 702 | def _workbook_writer(self): |
| 703 | """ |
| 704 | The worksheet writer object to which layout and writing of the Excel |
| 705 | worksheet for this chart will be delegated. |
| 706 | """ |
| 707 | return XyWorkbookWriter(self) |
| 708 | |
| 709 | |
| 710 | class BubbleChartData(XyChartData): |
no outgoing calls
searching dependent graphs…