MAIDR JavaScript API
    Preparing search index...
    • Read one chart into a snapshot.

      Needs ExcelApi 1.12, for ChartSeries.getDimensionValues; check Office.context.requirements.isSetSupported('ExcelApi', '1.12') first.

      Parameters

      Returns Promise<ExcelChartSnapshot>

      The snapshot, ready for convertExcelChart.

      Whatever Office.js throws reading the chart or its series' values. The labels and the image never throw: losing one of them is warned, and the snapshot is returned without it.

      const snapshot = await Excel.run(async (context) => {
      const chart = context.workbook.getActiveChartOrNullObject();
      return readExcelChart(context, chart);
      });
      const maidr = convertExcelChart(snapshot);