-
Notifications
You must be signed in to change notification settings - Fork 12k
Description
Expected behavior
a simple stacked bar chart works when using the latest umd from a cdn, but if I take the latest umd from the 4.5.1 dist and reference it locally, I get an error. All other charts work and if I remove stacked:true, i see a working (unstacked) chart.
Local policies prevent me from using a CDN. Is this is a bug? or am i doing something wrong?
Current behavior
The error when I use a local copy of the umd
Uncaught ReferenceError: Cannot access 'l' before initialization at ya (chart.umd.js:7:32206) at BarController.parse (chart.umd.js:14:24959) at BarController._insertElements (chart.umd.js:14:31039) at BarController._resyncElements (chart.umd.js:14:30762) at BarController.buildOrUpdateElements (chart.umd.js:14:24254) at l.update (chart.umd.js:14:61851) at l.<anonymous> (chart.umd.js:14:57882) at l._doResize (chart.umd.js:7:4573) at l._resize (chart.umd.js:14:59198) at l.resize (chart.umd.js:14:58789)
Reproducible sample
https://codepen.io/joecallaghan/pen/LENXVVR
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v4.5.1
Browser name and version
No response
Link to your project
No response