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

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

This comment has been minimized.

Show comment
Hide comment
@jon-a-nygaard

jon-a-nygaard Nov 25, 2016

Collaborator

Thanks for reporting!

Collaborator

jon-a-nygaard commented Nov 25, 2016

Thanks for reporting!

@sebastianbochan

This comment has been minimized.

Show comment
Hide comment
@sebastianbochan

sebastianbochan Nov 25, 2016

Contributor

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

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