Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2937 Weergaven

I read from cybrosys that we can either use the cdnjs link as an src attribute in the script tag or pull chart.js from git and add it to manifest. I registered cdnjs link to templates and it appears inside head tag, however it doesn't update my charts. Maybe that is because of another link below which calls built-in old chartjs. What about the second option, I don't know how to add chart.js to manifest. (as external dependency? if yes, how?)

Avatar
Annuleer
Beste antwoord

You can add the latest cdn link for the chart.js library in the assets path, So it will update the library as it updates.


Here is an example showing adding the cdnlink in manifest:


ie:


'assets': {

        'web.assets_backend': [ "https://cdn.jsdelivr.net/npm/chart.js"] }

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 22
2461
4
mei 21
29033
2
nov. 23
9019
0
jul. 20
3125
1
jun. 23
2531