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.
Ensures the chart's render target has an
idattribute 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 generatedid(maidr-hc-{n}). This is necessary because MAIDR's highlight system usesdocument.querySelectorAllwith selectors that must be scoped to a specific chart container.