from pptx import Presentation
from pptx.chart.data import XyChartData
from pptx.enum.chart import XL_CHART_TYPE
from pptx.util import Inches


# create presentation with 1 slide ------
prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[5])

# define chart data ---------------------
chart_data = XyChartData()

series_1 = chart_data.add_series('Sua empresa')
series_1.add_data_point(100, 90)
series_1.add_data_point(100, 90)
series_1.add_data_point(100, 90)

series_2 = chart_data.add_series('outra 1')
series_2.add_data_point(93, 78)
series_2.add_data_point(63, 85)
series_2.add_data_point(86, 90)

#series_2 = chart_data.add_series('outra 2')
#series_2.add_data_point(3.3, 1.7)

#series_2 = chart_data.add_series('outra 3')
#series_2.add_data_point(2.3, 6.7)



x, y, cx, cy = Inches(2), Inches(2), Inches(6), Inches(4.5)

chart = slide.shapes.add_chart(
    XL_CHART_TYPE.XY_SCATTER, x, y, cx, cy, chart_data
).chart

prs.save('chart-03.pptx')