I've output several pairs of columns to excel with x and y data that I want to present as a single chart in excel. I've found examples of how to make a chart of single series of data using range, but not how to add multiple series. I'm looking to do something like:
Anyone know how to do this?
local excel = luacom.CreateObject("Excel.Application")
local chart = excel.Charts:Add()
chart:AddSeries("=SERIES(Sheet1!$A$1,Sheet1!$A$2:$A$10,Sheet1!$B$2:$B$10,1)")
chart:AddSeries("=SERIES(Sheet1!$C$1,Sheet1!$C$2:$C$10,Sheet1!$D$2:$D$10,2)")
chart:AddSeries("=SERIES(Sheet1!$E$1,Sheet1!$E$2:$E$10,Sheet1!$F$2:$F$10,3)")
Anyone know how to do this?