Fixed
Project:
Charts
Version:
5.2.x-dev
Component:
Chart.js integration
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2026 at 18:58 UTC
Updated:
9 Sep 2026 at 04:33 UTC
Jump to comment: Most recent
It appears that the location of some of the remote JS libraries for Chart.js are no longer present. We need to find a new remote source.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
andileco commentedI couldn't actually replicate some of the issues I had experienced earlier, so I think we may be able to postpone the remote sources. However, I have made a few improvements in terms of bumping the version of Chart.js and also making one of the remotes a .min.js, as that's what's brought in to the local when using npm.
Comment #4
andileco commentedComment #5
awearring commentedThis fixes the issues I was having with the missing
libraries/chartjs-plugin-annotation/dist/chartjs-plugin-annotation.jsHowever I still get the following error when I try and use a "treemap" chart type
Suggested edit is to change L80-82
to:
Initializing options.plugins and options.plugins.dataLabels before setting display = false preserves the existing intent (disable the dataLabels plugin for treemap charts) while preventing the attach-time crash.
Comment #6
andileco commented@awearring, how is that? Which way of generating a treemap was causing this? Was it just the charts_api_example_chartjs module (or, have you looked at that)?
Comment #7
awearring commented@andileco
I get it when using charts in a Paragraph and if `Treemap` is selected
Comment #8
andileco commentedThanks! Do your errors go away when you pull the latest from this branch?
Comment #9
awearring commentedYes, pulling the updated branch clears that error - thanks
Comment #10
awearring commentedSorry, didn't spot that my comment would switch the issue to "active" - switching it back to "needs review"
Comment #11
awearring commented@andileco
I think we should bump up the library version for
charts_chartjstoo incharts_chartjs.libraries.ymlon line 37, that should then force browsers to pull the latest version (which would have resolved a problem that I've just encountered)Comment #13
ckaotikI've updated the copy instructions for the workspace-based package.json use. Otherwise, the npm install would fail:
Comment #14
andileco commentedThank you @ckaotik (and also great to know someone's using that method). Does anyone feel comfortable marking this RTBC?
Comment #16
andileco commented