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

Bar threshold resets after chart reflow when stacking is enabled #6033

Closed
stpoa opened this issue Nov 24, 2016 · 2 comments
Closed

Bar threshold resets after chart reflow when stacking is enabled #6033

stpoa opened this issue Nov 24, 2016 · 2 comments

Comments

@stpoa
Copy link

stpoa commented Nov 24, 2016

Expected behaviour

After clicking reflow, resizing window or hiding and showing series chart should look the same as before (have the same bar threshold).

Actual behaviour

After clicking reflow, resizing window or hiding and showing series bar threshold equals 0.

Live demo with steps to reproduce

http://jsfiddle.net/5nc02mvd/

  1. click reflow button.
@stpoa stpoa changed the title Bar threshold doesn't reset after chart reflow when stacking is enabled Bar threshold resets after chart reflow when stacking is enabled Nov 24, 2016
@jon-a-nygaard
Copy link
Contributor

Thanks for reporting!

@sebastianbochan
Copy link
Contributor

sebastianbochan commented Nov 25, 2016

Internal note
I think that it is more complex issue related with area stacking which has influence on column.

I observed a few issues:

  • problem is caused by hardcoded cum = 0 in the Stacking.js part.

Line stacks[type][i].cum = 0; in the Axis.prototype.resetStacks

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

3 participants