-
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
Question: Example of how to call the public method Ng2Highcharts.chart() #44
Comments
Ok this is an Angular2 question. I really need some help on support this lib :D sorry, the docs and examples are far from good :(. |
Hey no problem, you are doing a great job. I'll add my answers back here, and perhaps put some time your way and create a PR for the docs. |
Just as a hint, when you use ViewChild, the chart component is created on ngAfterViewInit, but the chart itself (the highcharts part) isn't, because highcharts has some internal timeouts. If you need it, your best shot is to set a timeout on ngAfterViewInit to get the chart from the Ng2Highcharts component. But if you need it latter, your are good to go. |
Adding this here in the hope it can help others:
|
@lorneb , what does the html look like for your answer? |
Hi does anyone have an example they can share that shows how to call the public property .chart that is found on the Ng2Highcharts class.
I'll keep looking, currently I'm heading down the road of using @ViewChild
got this working will post answer tomorrow when i'm back at work
The text was updated successfully, but these errors were encountered: