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

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

Projects

None yet

3 participants

@stpoa
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 from Bar threshold doesn't reset after chart reflow when stacking is enabled to Bar threshold resets after chart reflow when stacking is enabled Nov 24, 2016
@jon-a-nygaard jon-a-nygaard added the Bug label Nov 25, 2016
@jon-a-nygaard
Collaborator

Thanks for reporting!

@sebastianbochan
Collaborator
sebastianbochan commented Nov 25, 2016 edited

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