chartjs / chartjs/Chart.js

Uncaught TypeError: Cannot read properties of undefined (reading 'call') chart.js

Open
#11,316 5 comments 1 reaction 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

When I hover with the mouse over my chart I should see a tooltip with the information.

### Current behavior

I don't see the tooltip with the information and I get this error in the console.

Verison:
"chart.js": "^4.3.0",
"react-chartjs-2": "^5.2.0",

![image](https://github.com/chartjs/Chart.js/assets/72043010/fc323a2b-60dd-4ae3-9184-236dbb725e3a)

### Reproducible sample

https://codesandbox.io/p/sandbox/react-chartjs-2-chart-js-issue-template-v4-forked-41yoqv?file=%2Fsrc%2FApp.tsx%3A67%2C27

### Optional extra steps/info to reproduce

I'm not sure how to reproduce is because when I copy my code and paste it in sandbox it's working fine. Now I'm wondering where is the problem I've installed the same versions of chart.js and react-chartjs-2 to be the same as the version in sandbox and still now working.

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v4.3.0

### Browser name and version

Version 113.0.5672.127 (Official Build) (64-bit)

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.