-
-
Notifications
You must be signed in to change notification settings - Fork 67
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 properties of null (reading 'x') #498
Comments
This code works fine for me (I've just used |
Yes I upgraded chartjs-plugin-datalabels to 2.2.0. |
How about this sample: https://codepen.io/2uk3y/pen/rNPyPgW |
But your sampel is not using datalabels pligin, is it! My pie chart are working okay if I remove/comment out these lines from the above code.
|
It's not my sample. It's from the issue I've mentioned earlier. I'm asking because the sample works fine for me (and perhaps doesn't work for you). |
There is one more thing. Your stacktrace shows an error in |
The below lines are starting at line 125.
the lines are part of the chart code below.
|
I was referring to the |
It's the same for me. There is no reading |
It's okay. I appreciate your effort. I will prepare a sample proejct and share later. |
It seems there is a problem with a plugin: chartjs/chartjs-plugin-datalabels#141 . The issue is old and closed but the comments are fresh. Probably you need to wait for the new plugin release. |
Having the same issue on NodeJS generating PNG. |
I am getting the error below when I add code to display labels on Pie-chart. On other types of charts it's workign okay. Thiss issue started after upgrading Kvision to lastest version.
My code for displaying the chart is as below.
The text was updated successfully, but these errors were encountered: