var socket = io(); socket.on("plotData",function(data){ var keys = Object.keys(data); var traceObj = {}; var traces = []; $('webtronics_plot_keys').innerHTML = "Available keys: " + Object.keys(data); //Dynamically creating traces for(var i=0; i