Use the categories and series values in the |ChartData| object *chart_data* to replace those in the XML and Excel worksheet for this chart.
(self, chart_data)
| 157 | return _Plots(plotArea, self) |
| 158 | |
| 159 | def replace_data(self, chart_data): |
| 160 | """ |
| 161 | Use the categories and series values in the |ChartData| object |
| 162 | *chart_data* to replace those in the XML and Excel worksheet for this |
| 163 | chart. |
| 164 | """ |
| 165 | rewriter = SeriesXmlRewriterFactory(self.chart_type, chart_data) |
| 166 | rewriter.replace_series_data(self._chartSpace) |
| 167 | self._workbook.update_from_xlsx_blob(chart_data.xlsx_blob) |
| 168 | |
| 169 | @lazyproperty |
| 170 | def series(self): |