Closed
Description
Expected behavior
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
},
},
},
},
]
Current behavior
I get this typescript error:
E: Object literal may only specify known properties, and 'tooltip' does not exist in type 'ChartDataset<"line", PressureAndConsumption[]>'
Reproducible sample
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