MAIDR JavaScript API
    Preparing search index...
    • Converts a rendered ECharts instance into a MAIDR figure.

      Read from the chart's model rather than from its geometry: getModel() resolves every default the author did not write, so the values, the series names, the axis names and the stacking are all available without measuring a pixel. The drawing is consulted only to locate marks -- see selectors.ts for why that is the harder half.

      Parameters

      • chart: EChartsInstance

        The instance returned by echarts.init

      • container: HTMLElement

        The element it was rendered into

      • options: EChartsAdapterOptions = {}

        Overrides for the figure's id and title

      Returns Maidr

      The MAIDR figure

      When no series the adapter reads is present