MAIDR Documentation - v3.69.0
    Preparing search index...
    • Ensures the chart's render target has an id attribute so CSS selectors can be scoped to this specific chart.

      Side effect: If the element does not already have an id, this function mutates the DOM by assigning a generated id (maidr-hc-{n}). This is necessary because MAIDR's highlight system uses document.querySelectorAll with selectors that must be scoped to a specific chart container.

      Parameters

      Returns string

      The element's id value (existing or newly assigned).