chartjs / chartjs/chartjs-plugin-annotation

Cannot set properties of undefined (setting 'backgroundColor')

Open
#918 12 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
623
Forks
377
PR merge metrics
No merged PRs in 30d

Description

Seeing a console error intermittently while navigating form some different application, the chart js plugin annotation gives me erroe saying
`instrument.js:122 TypeError: Cannot set properties of undefined (setting 'backgroundColor')
at qe (chartjs-plugin-annotation.esm.js:778:9)
at ge (chartjs-plugin-annotation.esm.js:720:17)
at O.resolveElementProperties (chartjs-plugin-annotation.esm.js:939:12)
at vt (chartjs-plugin-annotation.esm.js:2065:32)
at Object.afterUpdate (chartjs-plugin-annotation.esm.js:2232:5)
at zt (helpers.segment.js:79:19)
at dn._notify (chart.js:5073:17)
at dn.notify (chart.js:5056:29)
at n.notifyPlugins (chart.js:6338:30)
at n.update (chart.js:5899:14)
at new n (chart.js:5652:18)`

I am using box annotation, This works on manual reloading the page.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.