The DOM node wrapping the Victory chart
The extracted layer info
Numeric index for generating unique attribute names
Set of elements already claimed by prior layers
A CSS selector string, or undefined if elements could not be
matched (highlighting will gracefully degrade).
Finds the Victory data elements inside a container for a given layer, tags them with a unique data attribute, and returns the CSS selector that matches exactly those elements.
Strategy:
role="presentation"on the individual data shapes.rectfor bars) that carriesrole="presentation".data-maidr-victory-<layerIndex>attribute so MAIDR can select them deterministically.