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

Wrong column display when stacking with negative values #1902

Closed
grzlybear opened this issue Aug 2, 2017 · 3 comments · Fixed by #2156
Closed

Wrong column display when stacking with negative values #1902

grzlybear opened this issue Aug 2, 2017 · 3 comments · Fixed by #2156

Comments

@grzlybear
Copy link

Issue Summary

I'm trying to create a column chart with series values that contain both positive and negative values.
For example, the number of new users is shown as positive while the number of churned users is shown as negative. They both have the same X value (same time frame).

When selecting the stacking option I expect the positive values to be above the X line and the negative values to be below the X line.

Technical details:

  • Redash Version: 1.0.3
  • Browser/OS: Chrome / OSX
  • How did you install Redash: self hosted on google cloud

reality
screen shot 2017-08-02 at 14 43 09

expected
screen shot 2017-08-02 at 14 45 42

@deecay
Copy link
Contributor

deecay commented Sep 14, 2017

@arikfr
Introduce barmode ['stack', 'overlay', 'group', 'relative'] somewhere in the editor-ui?
Since the list of options is not too long, maybe radio control is better that dropdown, which would require more clicks. Any preference or thoughts?

Example:
https://codepen.io/etpinard/pen/mPGLrY

@arikfr
Copy link
Member

arikfr commented Sep 14, 2017

We already have some of those options implemented with custom code, so it's nice we might be able to drop it and use their implementation.

But looks like they have a bug with "stack" too (in your example) or did I misunderstand how it supposed to work?

@deecay
Copy link
Contributor

deecay commented Sep 15, 2017

Related Plotly community discussion here.
So the behavior of "stack" seems intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants