# DB2: ui-template eCharts fails to load

**URL:** <https://discourse.nodered.org/t/db2-ui-template-echarts-fails-to-load/100578>\
**Category:** Dashboard\
**Tags:** dashboard-2, ui-template\
**Created:** [16 March 2026 14:16 UTC](https://discourse.nodered.org/t/db2-ui-template-echarts-fails-to-load/100578 "2026-03-16T14:16:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [16 March 2026 17:24 UTC](https://discourse.nodered.org/t/db2-ui-template-echarts-fails-to-load/100578/5 "2026-03-16T17:24:50Z")

</div>

> [@Steve-Mcl](#):
>
> You could try an alterative like unpkg `https://unpkg.com/echarts@5.4.3/dist/echarts.min.js`

Thanks - I changed the CDN and that seemed to fix it. I also realized that I was loading eCharts in every ui-template. I removed those and used the new CDN in a ui-template (Type = widget, Scope = "All Pages"). Hopefully, if there are any changes in the future, I only have to address them in one place 🤞🏼

> [@Steve-Mcl](#):
>
> Also alternatively, you could host the files yourself in a static share

Would the correct way be to put it in a sub-directory in the node-red directory on the RPi that is running Node-RED? I think I also have to make some changes then to the settings.js file - not sure what those are so need to research a bit (if that is the right approach)

---

_[View the full topic](https://discourse.nodered.org/t/db2-ui-template-echarts-fails-to-load/100578)._
