Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axis marks’ ariaLabel option #2162

Merged
merged 2 commits into from
Sep 5, 2024
Merged

axis marks’ ariaLabel option #2162

merged 2 commits into from
Sep 5, 2024

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
1 check passed
@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.

2 participants