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

Polar chart with init serie datas empty failed #5226

Closed
jVollerin opened this Issue Apr 18, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@jVollerin

jVollerin commented Apr 18, 2016

Expected behaviour

When we initialize polar chart with empty series data, we create empty polar chart

Actual behaviour

When we create polar chart with empty series we have a Javascript error :
Uncaught TypeError: Cannot read property 'y' of undefined

Live demo of the issue

http://jsfiddle.net/b1f1LxaL/

Steps to reproduce the behaviour

Initialize with empty array data serie

Affected browser(s)

Firefox v35.0.1, Chrome Version 48.0.2564.116 (not tested on other)

My comment

This is a regression since 4.2.1 version (I update to latest 4.2.4 today)

Fix purpose : in hightcharts-more.js at line 2463 (source file not the minimified)
Replace : if (this.options.connectEnds !== false && points[0].y !== null) {
With : if (this.options.connectEnds !== false && points[0] && points[0].y !== null) {

@jVollerin jVollerin changed the title from Polar chart with init serie datas empty aild to Polar chart with init serie datas empty failed Apr 18, 2016

@jVollerin

This comment has been minimized.

Show comment
Hide comment
@jVollerin

jVollerin Apr 22, 2016

This fix close this issue. Thanks

jVollerin commented Apr 22, 2016

This fix close this issue. Thanks

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