DOM introspection for the Observable Plot adapter.
Plot labels everything it draws. Each mark becomes a <g aria-label="bar">,
<g aria-label="dot">, and so on, and each piece of an axis becomes a group
whose label ends in -axis tick, -axis tick label, or -axis label. That
vocabulary is stable, documented, and the only structural contract the
adapter needs — which is why it reads the rendered chart rather than asking
the user to describe it.
DOM introspection for the Observable Plot adapter.
Plot labels everything it draws. Each mark becomes a
<g aria-label="bar">,<g aria-label="dot">, and so on, and each piece of an axis becomes a group whose label ends in-axis tick,-axis tick label, or-axis label. That vocabulary is stable, documented, and the only structural contract the adapter needs — which is why it reads the rendered chart rather than asking the user to describe it.