We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tooltip
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
Hey, I want to override a tooltip callback in datasets, this works fine, but the types don't allow it.
Sample code:
datasets: [ { data, tooltip: { callbacks: { label: (ctx) => { // do something with ctx }, }, }, }, ]
I get this typescript error:
E: Object literal may only specify known properties, and 'tooltip' does not exist in type 'ChartDataset<"line", PressureAndConsumption[]>'
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzgYQBYENZwL5wGZQQhwDkAxhrAHQBWAziQNwCwAUGwG6ZxkwAecALxwAJhDIBXEAFMAdjCoBzaTACiAG2kz5AIQCeASREAKAEQg9aTDFMBKOOjpwAEgBUAsgBlk6WVzoaWnIwLKxcUHAWVljCstIA7iiUMMa8fAA0iGxwOXAwemDSAFyk6sBxJOnZuSLoMOglCNW5cOroAEbS6nQlANqmAErSIqaZpjrqEtKjcKYAml3qEPEzpgDiUNJyqwAKElBgmqsA8lC+yqYAulWsLTm19XQqPXC9Tbd3LW2d6iUkAMRwCB4OAANQgMGkDBunxaDwarwAjAAmTKIgCcmQAzJkAKyZVFwLHXZq5bAkj4tGAQCDqGDAMCNUktMjodTqdroMgAaxe71huW+XRKqX49kEAD4spSBXAAPRy0QQOB0IgqVDlRRweLAGCoHj8Zl3bAw2Emo3mmWWloQMD0iCyPlGuiszROmUtPhMj13I05a2wvTe2VwP04C2k7BsbC2RhAA
No response
v4.4.8
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected behavior
Hey,
I want to override a tooltip callback in datasets, this works fine, but the types don't allow it.
Sample code:
Current behavior
I get this typescript error:
Reproducible sample
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzgYQBYENZwL5wGZQQhwDkAxhrAHQBWAziQNwCwAUGwG6ZxkwAecALxwAJhDIBXEAFMAdjCoBzaTACiAG2kz5AIQCeASREAKAEQg9aTDFMBKOOjpwAEgBUAsgBlk6WVzoaWnIwLKxcUHAWVljCstIA7iiUMMa8fAA0iGxwOXAwemDSAFyk6sBxJOnZuSLoMOglCNW5cOroAEbS6nQlANqmAErSIqaZpjrqEtKjcKYAml3qEPEzpgDiUNJyqwAKElBgmqsA8lC+yqYAulWsLTm19XQqPXC9Tbd3LW2d6iUkAMRwCB4OAANQgMGkDBunxaDwarwAjAAmTKIgCcmQAzJkAKyZVFwLHXZq5bAkj4tGAQCDqGDAMCNUktMjodTqdroMgAaxe71huW+XRKqX49kEAD4spSBXAAPRy0QQOB0IgqVDlRRweLAGCoHj8Zl3bAw2Emo3mmWWloQMD0iCyPlGuiszROmUtPhMj13I05a2wvTe2VwP04C2k7BsbC2RhAA
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v4.4.8
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: