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

Render Zero Values in Percent Charts Properly #3086

Merged
merged 3 commits into from
Feb 23, 2015

Conversation

stormpython
Copy link
Contributor

Fixes issues found in #1659 (see comments at bottom), #3083 and #3093.

In percent mode, vertical bar charts render bars when all values in a stack are zero. For example, if we have 3 values of 0 in a stack, then each value is given a proportion of 0.33. This behavior is undesirable, and so we have added a conditional statement that returns a zero value for the bar height in these situations.

In the pr is also a fix for displaying the percent values in the tooltip along with the count value. This was removed previously and is getting put back in.

@rashidkpc
Copy link
Contributor

This LGTM but doesn't cleanly backport on the 4.0 branch. Can you backport it and apply it to both master and 4.0?

edit: nevermind, done

rashidkpc added a commit that referenced this pull request Feb 23, 2015
Render Zero Values in Percent Charts Properly
@rashidkpc rashidkpc merged commit aa922b1 into elastic:master Feb 23, 2015
@stormpython stormpython deleted the fix_tooltip branch June 19, 2015 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants