I\'am using highchart for plotting a graph with angular:
HTML:
var canvas = document.createElement("chart");
Replace to:
var canvas = document.getElementById("chart");