How can I add a PivotChart with office.js?
I can see the pivotOptions property for chart (https://learn.microsoft.com/en-us/javascript/api/excel/excel.chart?view=excel-js-preview#excel-excel-chart-pivotoptions-member) but I couldn't find a clear example of Pivot-Chart creation similar to the other docs pages (i.e. https://learn.microsoft.com/en-us/office/dev/add-ins/excel/excel-add-ins-pivottables)
Is it possible? Can you please show how?
Try it: