code: def add_chart(self, chart_type, x, y, cx, cy, chart_data):
          
          rId = self.part.add_chart_part(chart_type, chart_data)
          graphicFrame = self._add_chart_graphicFrame(rId, x, y, cx, cy)
          self._recalculate_extents()
          return self._shape_factory(graphicFrame)
docs: Add a new chart of *chart_type* to the slide.
  
          The chart is positioned at (*x*, *y*), has size (*cx*, *cy*), and
          depicts *chart_data*. *chart_type* is one of the :ref:`XlChartType`
          enumeration values. *chart_data* is a |ChartData| object populated
          with the categories and series values for the chart.
  
          Note that a |GraphicFrame| shape object is returned, not the |Chart|
          object contained in that graphic frame shape. The chart object may be
          accessed using the :attr:`chart` property of the returned
          |GraphicFrame| object.