-
Notifications
You must be signed in to change notification settings - Fork 23
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 'chart' of undefined at a.Chart.reflow #75
Comments
What's the class that you are using ? Did you follow the wiki example ? |
I use import {Ng2HighchartsModule} from 'ng2-highcharts'; as was described in wiki. |
@sephh You are the heavier user of this library. Could you give us a light? |
I just ran into this problem as well. It started when I changed the parent component's change detection strategy to OnPush (that's the parent of the component in which I actually use the ng-highmaps directive). After trying a few things, I added:
Not just to the parent, but also to the component with the highchart, and then everything returned to normal. |
Hmm, I think I did have it happen again, but it's much more rare now. The problem does seem to lie here:
Sometime the bold line tries to get the transitionDuration, but it fails because there is no longer any this.hostElement. A simple check there I think would solve this problem |
Hi @chriszrc , If that is the case, it should stop in the if, one line before the parse, not? []'s |
If I remember correctly, I think that was returning -1, I'll have to go
back and look-
…On Wed, Sep 27, 2017 at 3:09 PM, Richard Natal ***@***.***> wrote:
Hi @chriszrc <https://github.com/chriszrc> ,
If that is the case, it should stop in the if, one line before the parse,
not?
[]'s
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#75 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYgWKYhu73CGvod39agDOpVfFx5XJ-9Pks5smp1ogaJpZM4PHgnf>
.
--
--
Chris Marx
ZevRoss - Know Your Data
Data Science & Spatial Analysis
New website: www.zevross.com
Ithaca, NY
|
Hi.I am facing this exactly same issue.Can you kindly update me on this? |
Can you post the stack trace? |
And the version of ng2-highcharts that you are using |
Was this resolved? Same issue here |
Does this issue is resolved, I am still facing the same issue |
Hi,
I have a single page angular application which contains few charts. When it starts to load charts specified errors are appear in console:
as I can see from debugger, error appears in function reflow() in ng2-highcharts-base.js
it calls function reflow() of highcharts and then falls with exception because this.options is undefined
Could you please advice what might be the cause of it?
The text was updated successfully, but these errors were encountered: