$(document).ready(function(){function a(a,o){a.data.labels.splice(0,1),a.data.datasets[0].data.splice(0,1),a.data.labels.push(r(0,10)),a.data.datasets[0].data.push(o),a.update(0)}function o(a,o){a.data.labels.splice(0,1),a.data.datasets[0].data.splice(0,1),a.data.labels.push(r(0,10)),a.data.datasets[0].data.push(o),a.update()}function r(a,o){return Math.floor(Math.random()*(o-a+1))+a}function e(a,o,e){result=[],a=void 0!==a?a:5,o=void 0!==o?o:0,e=void 0!==e?e:10;for(var t=0;t<a;t++)result.push(r(o,e));return result}var t={labels:["January","February","March","April","May","June","July"],datasets:[{label:"Product 1",data:e(7,0,100),backgroundColor:"rgba(244, 67, 55, .6)"},{label:"Product 2",data:e(7,0,100),backgroundColor:"rgba(76, 175, 81, .6)"},{label:"Product 3",data:e(7,0,100),backgroundColor:"rgba(255, 152, 0, .6)"}]},d={responsive:!0,scales:{xAxes:[{gridLines:{display:!1}}],yAxes:[{stacked:!0}]}},l=document.getElementById("myChart"),n=(new Chart(l,{type:"line",data:t,options:d}),{labels:e(200,0,10),datasets:[{label:"System Load",data:e(200,100,150),pointBorderColor:"rgba(0,0,0,0)",pointBackgroundColor:"rgba(0,0,0,0)",backgroundColor:"rgba(3, 169, 244, .6) "}]}),s=document.getElementById("myChart2"),i=new Chart(s,{type:"line",data:n,options:{responsive:!0,scales:{xAxes:[{display:!1,gridLines:{display:!1}}],yAxes:[{stacked:!0,ticks:{beginAtZero:!0,max:200}}]}}}),b={labels:e(50,0,10),datasets:[{label:"System Load",data:e(50,100,150),pointBorderColor:"rgba(0,0,0,0)",pointBackgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(255,255,255, .5) ",borderWidth:1,backgroundColor:"rgba(255,255,255, .2) "}]},p=document.getElementById("myChart3"),u=new Chart(p,{type:"line",data:b,options:{responsive:!0,legend:{display:!1,labels:{fontColor:"#fff",fontFamily:"Roboto"}},scales:{xAxes:[{display:!1,gridLines:{display:!1}}],yAxes:[{stacked:!0,display:!1,ticks:{beginAtZero:!0,max:200,display:!1}}]}}}),g={labels:e(20,0,10),datasets:[{label:"System Load",data:e(20,0,20),pointBorderColor:"rgba(0,0,0,0)",pointBackgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(255,255,255, .5) ",borderWidth:1,backgroundColor:"rgba(255,255,255, .2) "}]},y=document.getElementById("myChart4"),c=new Chart(y,{type:"line",data:g,options:{responsive:!0,legend:{display:!1,labels:{fontColor:"#fff",fontFamily:"Roboto"}},scales:{xAxes:[{display:!1,gridLines:{display:!1}}],yAxes:[{stacked:!0,display:!1,ticks:{beginAtZero:!0,display:!1}}]}}}),C=document.getElementById("myChart5");new Chart(C,{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"Line One",fill:!1,lineTension:.1,backgroundColor:"rgba(75,192,192,0.4)",borderColor:"rgba(75,192,192,1)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgba(75,192,192,1)",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgba(75,192,192,1)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:[65,59,80,81,56,55,40],spanGaps:!1},{label:"Line Two",fill:!1,lineTension:.1,backgroundColor:"rgba(154,0,0,0.4)",borderColor:"rgba(154,0,0,1)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgba(154,0,0,1)",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgba(154,0,0,1)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:[65,59,80,81,56,55,40],spanGaps:!1}]},options:d});setInterval(function(){a(i,r(100,150))},50),setInterval(function(){a(u,r(100,150))},500),setInterval(function(){o(c,r(0,20))},1e3)});