chartjs/Chart.js

hoverBackgroundColor not working in defaults in TypeScript

teodorachiosa opened this issue · 0 comments

Expected behavior

hoverBackgroundColor should be supported, just like it works in JavaScript:
https://codepen.io/teodorachiosa/pen/rNXOZwz?editors=1010

Current behavior

Using hoverBackgroundColor in TS, I'm getting this error:
Property 'hoverBackgroundColor' does not exist on type 'Defaults'. Did you mean 'backgroundColor'?

Reproducible sample

https://www.typescriptlang.org/play/#code/JYWwDg9gTgLgBAbzgYQBYENZwL5wGZQQhwDkAxhrAHQBWAziQNwCwAUG2pjFQCYCmedAFcANjDpVUEAG58oAIXRkA1gHNCQgHY9kEEdDgBeOAG0SAYjx4ADLeskANKXO2rtkgF0W7VtMxwyGAAPIzgeCDIhED5NblU+GABRET5o2PkATwBJHgAKACIQDM5YfIBKOHQ6OAAJABUAWQAZZHRNPzpk1JiYbz8oOCKS+GNNPgB3FEoYXMCgpwQ2OGW4GAywPgAuUjBgPkcllZ50GHRtxdYVq7gRdAAjPhE6bZN8gCU+HnynfPkRIT43zg+QAmo99OMgfkAOJQPgxKEABSEUDAKShAHkoG14vkPA5DtcwicqglnqYLkSibcHiJthY4BA8HAAGoQGB8BgEy5Uq7HU4vACMACYnIKAJxOADMTgArE5RXApfjCddsB5VdhuVcIGAYMAIJpyZTrnQyOgUsbVVcgudrdd7cstY64Bk7TzeS7sPbvR6cGxsGVvGwgA

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.4.4

Browser name and version

Chrome 129.0.6668.59

Link to your project

No response