I am writing an Excel add-in using MS Office JavaScript API
One of the tasks is to store charts in cloud and recreate them later. For creating a chart, the only function that the API is providing is
var chart = ctx.workbook.worksheets.getItem(sheetName).charts.add("pie", sourceData, "auto");
where sourceData must be am Excel range in A1:B2 format.
Unfortunately, when we iterate through all the charts in the sheet, the series object only contains values, no reference to the range is provided.
In the original VBA Excel model , the Series class had an additional Formula property, that is missing from the JS implementation.
Do you have any idea how to solve that ? How to get the series range for a chart ?