Here is another thread where you can find how to use highcharts
library and present it inside ui_template
node. Plot a time series using highcharts
Examine the code inside the ui_template
node first and see the difference with your code. Adjust your code to get the library correctly working and if there will be no errors in browser console, you are ready to go to adjust the incoming messages to match the needs for the chart library to be able to show what you are trying to plot.