You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change defaults after render leads to: TypeError: Cannot read properties of undefined (reading 'height') #12196
I would expect exception on changing defaults after render or correctly react on new values.
Current behavior
It may be minor but I spent one day debugging it. When you set Chart.defaults.font after render with responsive: true you can get NPE and puzzle over the reasons. It may happen when you do in the React app in different places.
Uncaught TypeError: Cannot read properties of undefined (reading 'height')
at eval (chart.js:8605:1)
at Array.forEach (<anonymous>)
at Legend._draw (chart.js:8587:1)
at Legend.draw (chart.js:8498:1)
at Object.draw (chart.js:3130:1)
at Chart.draw (chart.js:6094:1)
at Chart.render (chart.js:6070:1)
at Chart._resize (chart.js:5777:1)
at Chart.resize (chart.js:5747:1)
at listener (chart.js:6304:1)
at eval (chart.js:3397:1)
at eval (helpers.dataset.js:588:1)
at r (helpers.js:97:17)
Activity
[-]Vertical legend: TypeError: Cannot read properties of undefined (reading 'height')[/-]