While I was in the process of updating my Chartjs charts code, I referred to the migration guide provided:
https://www.chartjs.org/docs/next/getting-started/v3-migration.html
Most of the mentioned changes worked smoothly, but I encountered some issues with two specific points under Specific changes, specifically:
responsiveAnimationDuration
is now configured in animation.resize.duration
hover.animationDuration
is now configured in animation.active.duration
Below is the structure of my code:
new Chart(
// ...
options: {
// ...
animation: {
resize: { // My IDE is flagging an issue here as 'resize' is not recognized
duration: 0,
},
active: { // Similar problem here
duration: 0,
},
},
},
I am working with version 3.5.1, in case that information is useful
Is there something I may have overlooked or am I possibly doing something incorrect? Has anyone else faced a similar issue?