-
Notifications
You must be signed in to change notification settings - Fork 35
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
AmCharts.updateChart gives error #67
Comments
Error seems to be coming from the AmStockChart javascript some where. I believe it's happening on the |
@justinbleach Why are you calling Does it work correctly if you remove |
@Pauan there isn't any console error but I don't see my chart data either. Here is my chart create function: createDefaultChart() { |
@Pauan that's actually what we start with. Then we build the Panels etc dynamically depending on what's passed in. However, regardless of where I call the Cannot set property 'innerHTML' of null |
Full stack: ERROR TypeError: Cannot set property 'innerHTML' of null |
I'm also facing the same issue. |
My solution I posted here might help: https://github.com/amcharts/amcharts3-angular2/issues/12 |
I'm doing this:
this.AmCharts.updateChart(this.chart, ()=>{console.log('test')});
in a function in my component.
So inside
ngAfterViewInit
function I create my chart;this.chart = this.AmCharts.makeChart('chartDiv',....)
And immediately call my other function which does the update. With the
updateChart
method in I get an error when the page loads:ERROR TypeError: Cannot set property 'innerHTML' of null
As I'm not actually changing anything, just calling update I'm not sure what's going on.
The text was updated successfully, but these errors were encountered: