Skip to content
Discussion options

You must be logged in to vote

The vg.text element is indeed creating another plot, of type text, on the same y-axis as your normalized one. For the text chart, the y-axis is vg.count() rather than the normalized value. I think this is because offset only applies to stacked mark types.

One workaround could be to add tip: true to the barY element, which does show the normalized amount in the tooltip.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jheer
Comment options

jheer Apr 3, 2025
Maintainer

@mhkeller
Comment options

Answer selected by mhkeller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants