var round = Math.round; function toggle(idButton, idDiv, label) { if(document.getElementById(idDiv)) { if(document.getElementById(idDiv).style.display == 'none') { document.getElementById(idDiv).style.display = 'block'; document.getElementById(idButton).value = 'Hide '+label; } else { document.getElementById(idDiv).style.display = 'none'; document.getElementById(idButton).value = 'Show '+label; } } } function dateTracker(obj, gtype, labels, datasets) { var dateToDisplay = new Date(parseInt(obj.x)); var posValue = parseInt(obj.x); // look for the position in data arrays var pos = 0; if (datasets != undefined) { for (pos=0; pos < datasets[0].length; pos++) { // If timestamp are the same we have found the position if (datasets[0][pos][0] == posValue) { // get out of here break; } } } else { return 'NO DATASET'; } var textToShow = '
"),n.each(r,function(e,t){f.push(' | '+(e.label||String.fromCharCode(65+t))+" | "),s.push("
---|---|