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

Apply % tooltip to pie with stack: 'normalize' #8301

Closed
kanitw opened this issue Jul 18, 2022 · 0 comments
Closed

Apply % tooltip to pie with stack: 'normalize' #8301

kanitw opened this issue Jul 18, 2022 · 0 comments
Assignees

Comments

@kanitw
Copy link
Member

kanitw commented Jul 18, 2022

For normalized stacked charts (like bar), we automatically generate tooltips that calculates %.

The same could be applied to pie charts with stack: normalize too.

Essentially, the second block if (stack && stack.fieldChannel === channel && stack.offset === 'normalize') { in the code below in src/compile/mark/encode/tooltip.ts should be applicable to theta & radius too, not just x and y.

image

@kanitw kanitw changed the title Apply % tooltip to pie with stack: 'normalize' too Apply % tooltip to pie with stack: 'normalize' Jul 19, 2022
@lsh lsh closed this as completed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants