Skip to content
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

Multiple exception in log console Error: <text> attribute y: Expected length, "NaN" #8834

Closed
ivanmjartan opened this issue Aug 23, 2018 · 2 comments
Labels

Comments

@ivanmjartan
Copy link

@ivanmjartan ivanmjartan commented Aug 23, 2018

We have all negative series in Stacked column chart when we try set yAxis min value for value grater than 0 than graph looks rendered correctly (any items in view) but in console is flooded by exceptions.

I guess thats it looks like bug i not pls how set chart to avoid given ex.

Expected behaviour

No exception in log console

Actual behaviour

Several exceptions in log console

highcharts.js:83 Error: attribute y: Expected length, "NaN".
a.xSetter @ highcharts.js:83
(anonymous) @ highcharts.js:43
a.objectEach @ highcharts.js:28
attr @ highcharts.js:42
align @ highcharts.js:50
setOffset @ highcharts.js:322
translate @ highcharts.js:301
translate @ highcharts.js:354
(anonymous) @ highcharts.js:265
a.each @ highcharts.js:28
renderSeries @ highcharts.js:265
render @ highcharts.js:267
firstRender @ highcharts.js:270
(anonymous) @ highcharts.js:245
a.fireEvent @ highcharts.js:31
init @ highcharts.js:244
getArgs @ highcharts.js:244
a.Chart @ highcharts.js:243
a.chart @ highcharts.js:243
(anonymous) @ (index):39
2highcharts.js:83 Error: attribute y: Expected length, "NaNNaN".
2highcharts.js:83 Error: attribute y: Expected length, "NaNNaNNaN".
..

Live demo with steps to reproduce

https://jsfiddle.net/m7k54px8/31/

Product version

Current

Affected browser(s)

Tested in Chrome

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Aug 24, 2018

Hi @ivanmjartan

Thank you for reporting this issue. Issue comes from stackLabels - when disabled, it works fine: https://jsfiddle.net/BlackLabel/m7k54px8/37/

Minified demo: https://jsfiddle.net/BlackLabel/1c8fht32/

@dandv
Copy link
Contributor

@dandv dandv commented Oct 19, 2019

I see the same error with a stockChart, and no stackLabels. No Gantt either. I'll try to make a reproducible sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants