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