Skip to content

Labels for numeric scales compare on datum.value#464

Open
teunbrand wants to merge 3 commits into
posit-dev:mainfrom
teunbrand:label_expr_value_comparison
Open

Labels for numeric scales compare on datum.value#464
teunbrand wants to merge 3 commits into
posit-dev:mainfrom
teunbrand:label_expr_value_comparison

Conversation

@teunbrand
Copy link
Copy Markdown
Collaborator

This PR aims to fix #461.

The issue is that datum.label == '2000' ? '2000' didn't work because the label was actually '2,000' instead of '2000'.
In this PR, we compare datum.value to unquoted numbers instead.
Most of it is plumbing to get the right information to the right place.

@teunbrand teunbrand marked this pull request as ready for review June 3, 2026 14:11
@teunbrand teunbrand requested a review from thomasp85 June 3, 2026 14:11
@thomasp85
Copy link
Copy Markdown
Collaborator

Hmm... I'm quite sure there was a reason for this because Vega-Lite is vegalite... It has been a repeated issue to get break labelling to work correctly

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.

Thousands separator can't be formatted

2 participants