Trouble displaying chart.js line chart on Dashboard 2.0

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

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