$(document).ready(function(){function o(){$("#sparkline1").sparkline([46,38,43,35,44,45,52,46,40],{type:"line",width:"100%",height:"200",chartRangeMax:50,lineColor:"#3d8ef8",fillColor:"rgba(61, 142, 248, 0.3)",highlightLineColor:"rgba(0,0,0,.1)",highlightSpotColor:"rgba(0,0,0,.2)",maxSpotColor:!1,minSpotColor:!1,spotColor:!1,lineWidth:1}),$("#sparkline1").sparkline([20,28,22,24,38,32,30,24,28],{type:"line",width:"100%",height:"200",chartRangeMax:40,lineColor:"#11c46e",fillColor:"rgba(17, 196, 110, 0.3)",composite:!0,highlightLineColor:"rgba(0,0,0,.1)",highlightSpotColor:"rgba(0,0,0,.2)",maxSpotColor:!1,minSpotColor:!1,spotColor:!1,lineWidth:1}),$("#sparkline2").sparkline([9,8,7,8,6,11,5,7,9,6,4,7,11,13,9,12],{type:"bar",height:"200",barWidth:"10",barSpacing:"3",barColor:"#0db4d6"}),$("#sparkline3").sparkline([24,36,26,14],{type:"pie",width:"200",height:"200",sliceColors:["#fb4d53","#3d8ef8","#11c46e","#f1b44c"]}),$("#sparkline5").sparkline([9,8,7,8,6,11,5,7,9,6,8,7,8,13,10,12],{type:"line",width:"100%",height:"200",lineColor:"#11c46e",lineWidth:1,fillColor:"rgba(17, 196, 110,0.2)",highlightLineColor:"rgba(0,0,0,.1)",highlightSpotColor:"rgba(0,0,0,.2)"}),$("#sparkline5").sparkline([9,8,7,8,6,11,5,7,9,6,4,7,11,13,9,12],{type:"bar",height:"200",barWidth:"10",barSpacing:"5",composite:!0,barColor:"#3d8ef8"}),$("#sparkline6").sparkline([4,6,7,7,4,3,2,1,4,4,5,6,3,4,5,8,7,6,9,3,2,4,1,5,6,4,3,7],{type:"discrete",width:"280",height:"200",lineColor:"#0db4d6"})}function e(){var e,l=-1,t=-1,r=0,a=[];$("html").mousemove(function(i){var o=i.pageX,e=i.pageY;-1<l&&(r+=Math.max(Math.abs(o-l),Math.abs(e-t))),l=o,t=e});var h=function(){var i,o=(new Date).getTime();e&&e!=o&&(i=Math.round(r/(o-e)*1e3),a.push(i),30<a.length&&a.splice(0,1),r=0,$("#sparkline4").sparkline(a,{tooltipSuffix:" pixels per second",type:"line",width:"100%",height:"200",chartRangeMax:77,maxSpotColor:!1,minSpotColor:!1,spotColor:!1,lineWidth:1,lineColor:"#3d8ef8",fillColor:"rgba(61, 142, 248, 0.3)",highlightLineColor:"rgba(24,147,126,.1)",highlightSpotColor:"rgba(24,147,126,.2)"})),e=o,setTimeout(h,500)};setTimeout(h,500)}var l;o(),e(),$(window).resize(function(i){clearTimeout(l),l=setTimeout(function(){o(),e()},300)})});