Skip to content

Conversation

@Fil
Copy link
Contributor

@Fil Fil commented Sep 5, 2024

Fix the ariaLabel option on the axis mark.

Including a realistic use case where we don't want the aria-label of the custom mark to be "axis-x", otherwise Plot skips the implicit axis.

Enregistrement.de.l.ecran.2024-09-05.a.13.29.59.mov

The test chart — a continuous “crosshair-x” — is not necessarily what I would recommend to use (maybe I'd anchor the new mark at the top, or I would fade out the axis mark when hovering…), but it's a nice way to see how things overlap—and consistent with what the crosshair mark does.

[Note that this is not enough to solve the continuous crosshair issue (#1629); visually OK if you add these two marks in x and y, but the Plot's value on the dispatched input event is either x or y — what we want is (x, y).]

@Fil Fil requested a review from mbostock September 5, 2024 11:31
@Fil Fil merged commit 09edfec into main Sep 5, 2024
@Fil Fil deleted the fil/axis-aria-label branch September 5, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants