MAIDR JavaScript API
    Preparing search index...
    • Makes every ECharts chart under a root accessible, including the ones drawn after this is called.

      For a page that holds charts it did not create itself -- a Superset or Metabase dashboard, where each tile creates its own. Each chart is found by the attribute ECharts writes on the element it was initialised on, and bound with bindEChart; one that is disposed or removed from the page is unbound.

      Parameters

      • echarts: EChartsLibrary

        The host page's own echarts (or echarts/core) module

      • root: ParentNode = document

        Where to look; the whole document by default

      Returns () => void

      A function that stops watching and unbinds every chart