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

Treemap: zIndex: NaN crashes in IE8 #6956

Closed
KacperMadej opened this Issue Jul 13, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@KacperMadej
Contributor

KacperMadej commented Jul 13, 2017

Expected behaviour

zIndex defined as number

Actual behaviour

zIndex being NaN, because in alignDataLabel point.node.zIndex is undefined and undefined + 1 is NaN

Live demo with steps to reproduce

http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/demo/treemap-coloraxis/
How to find the issue:
A) debug in IE8 - error will be reported
B) check alignDataLabel function in treemap file - point.node.zIndex is undefined

Affected browser(s)

IE8 crashes, but the problem can be seen in other browsers, however other browsers seem to be handing the issue silently.

@KacperMadej KacperMadej self-assigned this Jul 13, 2017

@KacperMadej

This comment has been minimized.

Show comment
Hide comment
@KacperMadej

KacperMadej Jul 13, 2017

Contributor

Workaround:

Add the wrapper (in the below demo) end use rgba colors instead of #ABCDEF. Demo:

Contributor

KacperMadej commented Jul 13, 2017

Workaround:

Add the wrapper (in the below demo) end use rgba colors instead of #ABCDEF. Demo:

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