-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
Uncaught TypeError: Cannot read property 'transition' of null #241
Comments
Can you provide a codepen or jsfiddle for reproduction? |
closed due to inactivity |
I'm having this same issue now |
Well, ...
|
EDIT: My problem is solved, it was something related with option props, I don´t know yet more, but I will follow investigate, but for now is solved Hi, I am having same issue, when I try to rebuilt the dataset in chartData prop for my charts. Especifically you can find where my problem is here https://github.com/ruthqv/graphconverter/blob/master/resources/assets/js/App.vue |
Same issue here. Please, @ruthqv , could you please explain how did you solve it? |
I have the same issue. And it really seems to be the problem with Chart.js ( similar issue: chartjs/Chart.js#5149 (comment) ) |
I guess the problem is related to async api calls and a mismatch of labels.length and datasets.data.length. You basically should always add a async fetchData () {
this.loaded = false
try {
this.chartData = await axios.get('.....')
this.loaded = true
} catch (err) {
console.error(err)
}
} |
Happens to me, too, but with static data. I'm planning on integrating vue-chartjs in a rather large ERP application, so I set up a simple
As it looks to me, the chart renders nice and clean, but if you hover some data points, something seems to go wrong while rendering the tooltips. That results in the chart disappearing. I can't reproduce it yet, but I'll try to see what I can come up with. |
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 get this error when tried to add datasets one by one, with push() method. Solve this by change all chartData.data for one action This works for me:
hope it helps somebody |
i had the same issue. I used cloneDeep to create a new Object. Then it worked. |
I had similar problem when writing Jest tests for my chart components, and solved it by installing jest-canvas-mock. |
THANKSS!!! Worked! |
The error also goes away if you call |
Hi @apertureless I am using this package for my data viz platform. The pie chart on load does not show but gives the error message Uncaught TypeError: Cannot read property 'transition' of null in my console. But when I try to click another chart, the chart comes up. What it this transition property? and how can I solve the problem?
The text was updated successfully, but these errors were encountered: