MAIDR JavaScript API
    Preparing search index...
    • Mount MAIDR in an Excel add-in's task pane.

      Call it once Office.js is ready, from Office.onReady. It appends one wrapper to container, reads the workbook's charts, shows the active chart (or the first), and keeps the pane in step with the workbook until ExcelBinding.dispose.

      Every chart is read through ChartSeries.getDimensionValues, which needs ExcelApi 1.12: Excel on the web, Excel for Microsoft 365 (version 2008 or later), Excel 2021 or later. An older Excel gets a message in the pane saying so, and nothing is read. With ExcelApi 1.15, category labels are read from their cells as Excel displays them.

      Parameters

      • container: HTMLElement

        The element the pane goes in. A wrapper is appended to it; nothing else is touched.

      • options: ExcelBindOptions = {}

        Where Office.js is, and how the pane behaves and reads.

      Returns Promise<ExcelBinding>

      The binding, once the first chart has been read. It never rejects: a pane that cannot read says so in the pane.