# Trouble displaying chart.js line chart on Dashboard 2.0

**URL:** <https://discourse.nodered.org/t/trouble-displaying-chart-js-line-chart-on-dashboard-2-0/98052>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [9 July 2025 13:44 UTC](https://discourse.nodered.org/t/trouble-displaying-chart-js-line-chart-on-dashboard-2-0/98052 "2025-07-09T13:44:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 July 2025 14:28 UTC](https://discourse.nodered.org/t/trouble-displaying-chart-js-line-chart-on-dashboard-2-0/98052/2 "2025-07-09T14:28:11Z")

</div>

Any reason you are not using the built-in chart?

PS, to integrate with external dependencies (like chart.js), there is a specific pattern required. [Template ui-template | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/nodes/widgets/ui-template#loading-external-dependencies)

Also, on that page (scroll to the top) is a **"Try Demo" button** that has an example of loading eCharts and populating them with data - you could copy/download that demo flow and adapt it for chartjs

Also, there is this demo: [How to configure Echarts in Dashboard 2? - #4 by Steve-Mcl](https://discourse.nodered.org/t/how-to-configure-echarts-in-dashboard-2/87259/4)

---

_[View the full topic](https://discourse.nodered.org/t/trouble-displaying-chart-js-line-chart-on-dashboard-2-0/98052)._
