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

Error when tooltip has variable mapped to aesthetic used by stat #665

Closed
OLarionova-HORIS opened this issue Jan 13, 2023 · 0 comments
Closed
Assignees
Milestone

Comments

@OLarionova-HORIS
Copy link
Contributor

Using a tooltip (or annotation) with a variable mapped to the aesthetic used by the statistic gives an error.

For example, geom_pie() + 'count2d' with Aes.WEIGHT (to compute sum instead of simple count):

ggplot({
  'name': ['a', 'b', 'c'],
  'value': [1, 2, 3],
}) + geom_pie(aes(fill='name', weight='value'), tooltips=layer_tooltips().line('@value'))

Result:
Screenshot 2023-01-13 at 13 03 06

@OLarionova-HORIS OLarionova-HORIS self-assigned this Jan 13, 2023
@IKupriyanov-HORIS IKupriyanov-HORIS added this to the 2023Q1 milestone Feb 15, 2023
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

No branches or pull requests

2 participants