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
TypeError: Cannot read property 'pos' of undefined #7872
Comments
Hi @Lir10 Could you contact with our support? See: https://www.highcharts.com/support We use github issues for bug reports. In your case I am not sure if this is a bug in Highstock, misconfigured chart or a bug in highcharts-ng module.
Only one idea: error suggests xAxis/yAxis ticks issue, so I would try to remove options defined there and see if this resolves the issue. If yes, then please recreate issue in jsfiddle, without highcharts-ng to be sure it's a bug in Highstock lib. |
Hi @pawelfus , You were right - the problem was on the xAxis ticks Closing the issue |
@Lir10 May I ask what the problem was? I have the same issue and am trying to pinpoint the cause. Thanks! |
I would suggest to do this:
|
If you will be able to provide a stable way to recreate the issue please share a link for the demo or files needed. |
@KacperMadej, I couldn't find the root cause yet, but here is what I've found out (I'm sorry in advance for a pieces of obfuscated code below):
d.group.animate({
scaleY: 1
}, G(z(d.options.animation), {
step: function(a, b) {
h[f] = v + b.pos * (c.pos - v); /// <-- b is undefined
d.group.attr(h)
}
}))
animate: function(e, q, b) {
q = a.animObject(y(q, this.renderer.globalAnimation, !0));
y(m.hidden, m.msHidden, m.webkitHidden, !1) && (q.duration = 0);
0 !== q.duration ? (b && (q.complete = b),
h(this, e, q)) : (this.attr(e, null, b),
q.step && q.step.call(this)); /// <-- function called without arguments
return this
}
I didn't have enough time to inspect that issue in depth. Hope what I've found will be helpful for you. P.S. Also attaching piece of screenshot with console error. Not sure if it will help a lot, but who knows :) |
@davletovalmir Here's a workaround with code fix: You could apply the code fix from the demo into your code (like a module - after main Highcharts file). If you have time please check if this resolves the error in your app. FYI: Not minified, human readable code for Highcharts related files is available by using files with Details (a.k.a. the longer story):
That's something to check - this might be connected to a recent feature that prevents animation for unfocused browser cards / windows (because there's no need to animate when no one is watching). I was able to get the correct corresponding code in not minified code. The key here is to use column series type. Demo: https://jsfiddle.net/BlackLabel/L6x08jeq/
Internal note: |
@KacperMadej, thanks, that makes sense. Fix works :) |
@davletovalmir In the meantime:
|
The issue was caused by the |
@KacperMadej how long until the next release? We just migrated from angular highcharts and would love to just install the version with the fix before merging our feature branch, instead of starting out with additional code to fix a bug, that won't be there anymore in a few days. |
Next version (7.0.3) is scheduled by the end of this week |
Is there an updated ETA? |
Regression tests are in progress. Once all of the issues are resolved, new version will be released - I would expect new release soon, a few days max. |
It's released now @yhoiseth |
Sweet! Thanks for letting me know 🙂 For some reason, GitHub didn't notify me, even though I'm "watching releases" for this repository 🤔 |
I don't know why you didn't get the notification, but still, you can sign up to our mailing list: https://www.highcharts.com/blog/download/ |
I'm using highcharts-ng with highcharts.js
Everytime i launch the graph i get this error:
Any ideas?
The text was updated successfully, but these errors were encountered: