| 1 |
- !function(o,t,r){"use strict";function a(o,t,r){o.push(Math.floor(Math.random()*(r-t+1))+t),o.shift(),u.update()}var e=r("#line-stacked-area"),i={responsive:!0,maintainAspectRatio:!1,pointDotStrokeWidth:4,legend:{display:!1,labels:{fontColor:"#FFF",boxWidth:10},position:"top"},hover:{mode:"label"},scales:{xAxes:[{display:!1}],yAxes:[{display:!0,gridLines:{color:"rgba(255,255,255, 0.3)",drawTicks:!1,drawBorder:!1},ticks:{display:!1,min:0,max:70,maxTicksLimit:4}}]},title:{display:!1,text:"Chart.js Line Chart - Legend"}},d=t.getElementById("emp-satisfaction").getContext("2d"),n=d.createLinearGradient(0,0,0,400);n.addColorStop(0,"rgba(255,255,255,0.5)"),n.addColorStop(1,"rgba(255,255,255,0)");var l={responsive:!0,maintainAspectRatio:!1,datasetStrokeWidth:3,pointDotStrokeWidth:4,tooltipFillColor:"rgba(0,0,0,0.8)",legend:{display:!1},hover:{mode:"label"},scales:{xAxes:[{display:!1}],yAxes:[{display:!1,ticks:{min:0,max:85}}]},title:{display:!1,fontColor:"#FFF",fullWidth:!1,fontSize:40,text:"82%"}},s={labels:["January","February","March","April","May","June","July"],datasets:[{label:"Employees",data:[28,35,36,48,46,42,60],backgroundColor:n,borderColor:"rgba(255,255,255,1)",borderWidth:2,strokeColor:"#ff6c23",pointColor:"#fff",pointBorderColor:"rgba(255,255,255,1)",pointBackgroundColor:"#3BAFDA",pointBorderWidth:2,pointHoverBorderWidth:2,pointRadius:5}]},p={type:"line",options:l,data:s},b=(new Chart(d,p),{labels:["January","February","March","April","May","June","July","August","September","October","November","December"],datasets:[{label:"Android",data:[18,15,30,25,28,35,14,18,12,20,18,24],backgroundColor:"transparent",borderColor:"#FF6E40",pointColor:"#fff",pointBorderColor:"#FF6E40",pointBackgroundColor:"#fff",pointBorderWidth:2,pointHoverBorderWidth:2,pointRadius:3},{label:"iOS",data:[30,35,60,40,45,55,32,45,58,53,45,60],backgroundColor:"transparent",borderColor:"#1DE9B6",pointColor:"#fff",pointBorderColor:"#1DE9B6",pointBackgroundColor:"#fff",pointBorderWidth:2,pointHoverBorderWidth:2,pointRadius:3}]}),c={type:"line",options:i,data:b},u=new Chart(e,c);setInterval(function(){a(u.data.datasets[0].data,5,25),a(u.data.datasets[1].data,35,60)},3500)}(window,document,jQuery);
|