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

Stacked area fill glitches if y-axis threshold is negative and a data point is exactly y=0 #5280

Closed
DuncanColvin opened this Issue May 3, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@DuncanColvin

DuncanColvin commented May 3, 2016

Expected behaviour

The area fills should stack on top of each other as they normally do.

Actual behaviour

In a chart with a negative y-axis threshold: if an area fill has a data point lying exactly on y=0 then the series stacked on top of it will place its corresponding data point all the way to the bottom of the chart. This results in incorrect stacking of the area fills.

Live demo of the issue

http://jsfiddle.net/eu8gh0uu/

Steps to reproduce the behaviour

1 - Have two stacked area filled series.
2 - Give the bottom series one data point exactly on zero (the other data points can all be positive or any mixture of positive and negative)
3 - Give both series a negative y-axis threshold (less than the lowest negative number from step 2).

Affected browser(s)

Chrome, firefox, IE 11

@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus May 5, 2016

Contributor

Thank you for reporting!

Internal note:
Issue comes from this place. Value is equal 0, so do stackThreshold (at least it's a good starting point for debugging, why in the first place yBottom = 0).

Contributor

pawelfus commented May 5, 2016

Thank you for reporting!

Internal note:
Issue comes from this place. Value is equal 0, so do stackThreshold (at least it's a good starting point for debugging, why in the first place yBottom = 0).

@TorsteinHonsi TorsteinHonsi added the Bug label May 6, 2016

@TorsteinHonsi TorsteinHonsi modified the milestones: v4.2.5, v4.2.6 May 6, 2016

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi
Collaborator

TorsteinHonsi commented May 9, 2016

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