-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Cannot read property 'transition' of null #5149
Comments
@shehan360 do you have a fiddle that reproduces this issue that we can use for debugging? |
Guys the problem arose from Angular input binding problem. Not related to ChartJs. |
I think this is a chart.js problem. If you do quick dataset replacement (i.e. remove then add new) during animation / transition, the exception will be raised. Occurs also for animation duration: 0 |
Anyone solved for |
@MinChanSike are you getting the problem on Angular? |
no, I got in sample html page when I try to refresh data quickly. |
I am also getting that error when I'm trying to push data into the charts. |
Try to call mychart.update() after setting the new data... that solved the problem for me. |
This error occurs when you just initialized the graph and overwrite the dataset almost immediately after you have initialized the graph (e.g., initializing the graph with empty dataset and sending an HTTP request to get a dataset from the server). I was able to solve this error by completely disabling the animation in the options. My graph options: var options = {
responsive: true,
maintainAspectRatio: false,
animation: {
duration: 0
},
hover: {
animationDuration: 0
},
responsiveAnimationDuration: 0
}; |
|
I'm using Angular and had the same problem. |
@KimiaBashiran isn't |
The "Uncaught TypeError" is still an issue, |
I just encountered this problem too. I've opened a new issue since this one was closed. See #6207 |
as discussed in #6207, calling |
mine was solved by this |
mt too. |
i had similar issue, after reading the source code adding |
Thank you so much, seems like my data had not arrived in time and updating the chart fixed the issue |
Thanks @ctrl-d this solves my issue. |
Im trying to draw a line chart using ChartJs and Agular4 that takes data from @input.
Without the timeout,
error is generated. Any idea on resolving this issue?
Im using ChartJs 2.7.1
And Angular 4
The text was updated successfully, but these errors were encountered: