MAIDR JavaScript API
    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}), which every selector is scoped to so it names this chart's container alone wherever it is read.

      Parameters

      Returns string

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