How to import a chart into my template without using cdn

I managed to solve it, I modified the settings.json, added

httpStatic: [ { path: path.join(os.homedir(), '.node-red', 'st'), root: "/st/" }]

, I created the st folder and placed the chart.js file inside of it, then I imported it using


<script src="/st/chart.js"></script>

Thank you very much for your help.

1 Like