!function(b){"use strict";var o=function(){this.$body=b("body"),this.$realData=[]};o.prototype.createPlotGraph=function(o,a,t,r,e,l,i,n){b.plot(b(o),[{data:a,label:e[0],color:l[0]},{data:t,label:e[1],color:l[1]},{data:r,label:e[2],color:l[2]}],{series:{lines:{show:!0,fill:!0,lineWidth:2,fillColor:{colors:[{opacity:.3},{opacity:.3},{opacity:.3}]}},points:{show:!0},shadowSize:0},grid:{hoverable:!0,clickable:!0,borderColor:i,tickColor:"#f9f9f9",borderWidth:1,labelMargin:30,backgroundColor:n},legend:{position:"ne",margin:[0,-32],noColumns:0,labelBoxBorderColor:null,backgroundColor:"transparent",labelFormatter:function(o,a){return o+"  "},width:30,height:2},yaxis:{axisLabel:"Daily Visits",tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}},xaxis:{axisLabel:"Last Days",tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}},tooltip:!0,tooltipOpts:{content:"%s: Value of %x is %y",shifts:{x:-60,y:25},defaultTheme:!1},splines:{show:!0,tension:.1,lineWidth:1}})},o.prototype.createPlotDotGraph=function(o,a,t,r,e,l,i){b.plot(b(o),[{data:a,label:r[0],color:e[0]},{data:t,label:r[1],color:e[1]}],{series:{lines:{show:!0,fill:!1,lineWidth:3,fillColor:{colors:[{opacity:.3},{opacity:.3}]}},curvedLines:{apply:!0,active:!0,monotonicFit:!0},splines:{show:!0,tension:.4,lineWidth:5,fill:.4}},grid:{hoverable:!0,clickable:!0,borderColor:l,tickColor:"rgba(104, 115, 142, 0.1)",borderWidth:1,labelMargin:10,backgroundColor:i},legend:{position:"ne",margin:[0,-32],noColumns:0,labelBoxBorderColor:null,backgroundColor:"transparent",labelFormatter:function(o,a){return o+"  "},width:30,height:2},yaxis:{axisLabel:"Gold Price(USD)",tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}},xaxis:{axisLabel:"Numbers",tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}},tooltip:!1})},o.prototype.createPieGraph=function(o,a,t,r){var e=[{label:a[0],data:t[0]},{label:a[1],data:t[1]},{label:a[2],data:t[2]},{label:a[3],data:t[3]}],l={series:{pie:{show:!0,radius:1,label:{show:!0,radius:1,background:{opacity:.2}}}},legend:{show:!1},grid:{hoverable:!0,clickable:!0},colors:r,tooltip:!0,tooltipOpts:{content:"%s, %p.0%"}};b.plot(b(o),e,l)},o.prototype.randomData=function(){for(0 '+o+""},backgroundColor:"transparent",labelBoxBorderColor:null,margin:50,width:20},grid:{hoverable:!0,clickable:!0},colors:r,tooltip:!0,tooltipOpts:{content:"%s, %p.0%"}};b.plot(b(o),e,l)},o.prototype.createStackBarGraph=function(o,a,t,r){var e={bars:{show:!0,barWidth:.2,fill:1},grid:{show:!0,aboveData:!1,labelMargin:5,axisMargin:0,borderWidth:1,minBorderMargin:5,clickable:!0,hoverable:!0,autoHighlight:!1,mouseActiveRadius:20,borderColor:"rgba(104, 115, 142, 0.1)"},series:{stack:0},legend:{position:"ne",margin:[0,-32],noColumns:0,labelBoxBorderColor:null,backgroundColor:"transparent",labelFormatter:function(o,a){return o+"  "},width:30,height:2},yaxis:a.y,xaxis:a.x,colors:t,tooltip:!0,tooltipOpts:{content:"%s : %y.0",shifts:{x:-30,y:-50}}};b.plot(b(o),r,e)},o.prototype.createLineGraph=function(o,a,t,r){var e={series:{lines:{show:!0},points:{show:!0}},legend:{position:"ne",margin:[0,-32],noColumns:0,labelBoxBorderColor:null,backgroundColor:"transparent",labelFormatter:function(o,a){return o+"  "},width:30,height:2},yaxis:{tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}},xaxis:{tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}},colors:t,grid:{hoverable:!0,borderColor:"rgba(104, 115, 142, 0.1)",borderWidth:1,backgroundColor:"transparent"},tooltip:!0,tooltipOpts:{content:"%s : %y.0",shifts:{x:-30,y:-50}}};return b.plot(b(o),r,e)},o.prototype.createCombineGraph=function(o,a,t,r){var e=[{label:t[0],data:r[0],lines:{show:!0,fill:!0},points:{show:!0}},{label:t[1],data:r[1],lines:{show:!0},points:{show:!0}},{label:t[2],data:r[2],bars:{show:!0}}],l={series:{shadowSize:0},grid:{hoverable:!0,clickable:!0,tickColor:"#98a6ad",borderWidth:1,borderColor:"rgba(104, 115, 142, 0.1)",backgroundColor:"transparent"},colors:["#4489e4","#78c350","#f18f1c"],tooltip:!0,tooltipOpts:{defaultTheme:!1},legend:{position:"ne",margin:[0,-32],noColumns:0,labelBoxBorderColor:null,backgroundColor:"transparent",labelFormatter:function(o,a){return o+"  "},width:30,height:2},yaxis:{axisLabel:"Point Value (1000)",tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}},xaxis:{axisLabel:"Daily Hours",ticks:a,tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}}};b.plot(b(o),e,l)},o.prototype.init=function(){this.createPlotGraph("#website-stats",[[0,13],[1,13],[2,14],[3,17],[4,13],[5,10],[6,12],[7,13],[8,12],[9,20],[10,18],[11,16],[12,14]],[[0,8],[1,10],[2,12],[3,14],[4,11],[5,7],[6,9],[7,10],[8,9],[9,17],[10,15],[11,13],[12,11]],[[0,3],[1,6],[2,8],[3,10],[4,7],[5,3],[6,5],[7,7],[8,6],[9,14],[10,12],[11,10],[12,8]],["Google","Yahoo","Facebook"],["#4489e4","#78c350","#f18f1c"],"rgba(104, 115, 142, 0.1)","transparent");this.createPlotDotGraph("#website-stats1",[[0,2],[1,4],[2,7],[3,9],[4,6],[5,3],[6,10],[7,8],[8,5],[9,14],[10,10],[11,10],[12,8]],[[0,1],[1,3],[2,6],[3,7],[4,4],[5,2],[6,8],[7,6],[8,4],[9,10],[10,8],[11,14],[12,5]],["Visits","Page views"],["#34bd25","#ff4433"],"rgba(104, 115, 142, 0.1)","transparent");this.createPieGraph("#pie-chart #pie-chart-container",["Mobile Phones","iPhone 7","iMac","Macbook"],[20,30,15,32],["#47dea3","#23d0ea","#fb6d9d","#3f4958"]);var a=this.createRealTimeGraph("#flotRealTime",this.randomData(),["#64c5b1"]);a.draw();var t=this;!function o(){a.setData([t.randomData()]),a.draw(),setTimeout(o,(b("html").hasClass("mobile-device"),500))}();this.createDonutGraph("#donut-chart #donut-chart-container",["Mobile Phones","iPhone 7","iMac","Macbook"],[35,20,10,20],["#60befc","#6248ff","#e3b0db","#dbdbdb"]);var o=[[[0,201],[1,520],[2,337],[3,261],[4,157],[5,95],[6,200],[7,250],[8,320],[9,500],[10,152],[11,214],[12,364],[13,449],[14,558],[15,282],[16,379],[17,429],[18,518],[19,470],[20,330],[21,245],[22,358],[23,74]],[[0,311],[1,630],[2,447],[3,371],[4,267],[5,205],[6,310],[7,360],[8,430],[9,610],[10,262],[11,324],[12,474],[13,559],[14,668],[15,392],[16,489],[17,539],[18,628],[19,580],[20,440],[21,355],[22,468],[23,184]],[[23,727],[22,128],[21,110],[20,92],[19,172],[18,63],[17,150],[16,592],[15,12],[14,246],[13,52],[12,149],[11,123],[10,2],[9,325],[8,10],[7,15],[6,89],[5,65],[4,77],[3,600],[2,200],[1,385],[0,200]]];this.createCombineGraph("#combine-chart #combine-chart-container",[[0,"22h"],[1,""],[2,"00h"],[3,""],[4,"02h"],[5,""],[6,"04h"],[7,""],[8,"06h"],[9,""],[10,"08h"],[11,""],[12,"10h"],[13,""],[14,"12h"],[15,""],[16,"14h"],[17,""],[18,"16h"],[19,""],[20,"18h"],[21,""],[22,"20h"],[23,""]],["Last 24 Hours","Last 48 Hours","Difference"],o);for(var r=[],e=0;e<=10;e+=1)r.push([e,parseInt(30*Math.random())]);var l=[];for(e=0;e<=10;e+=1)l.push([e,parseInt(30*Math.random())]);var i=[];for(e=0;e<=10;e+=1)i.push([e,parseInt(30*Math.random())]);var n=new Array;n.push({label:"Series One",data:r,bars:{order:3}}),n.push({label:"Series Two",data:l,bars:{order:2}}),n.push({label:"Series Three",data:i,bars:{order:1}}),this.createStackBarGraph("#ordered-bars-chart",{y:{axisLabel:"Sales Value (USD)",tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}},x:{axisLabel:"Last 10 Days",tickColor:"rgba(104, 115, 142, 0.1)",font:{color:"#98a6ad"}}},["#23d0ea","#3f4958","#ebeff2"],n);var s=[],c=[];for(e=0;e<12;e+=.2)s.push([e,Math.sin(e+0)]),c.push([e,Math.cos(e+0)]);var h=[{data:s,label:"Google"},{data:c,label:"Yahoo"}];this.createLineGraph("#line-chart-alt",{y:{min:-1.2,max:1.2,tickColor:"#f5f5f5",font:{color:"#bdbdbd"}},x:{tickColor:"#f5f5f5",font:{color:"#bdbdbd"}}},["#f5707a","#188ae2"],h)},b.FlotChart=new o,b.FlotChart.Constructor=o}(window.jQuery),function(o){"use strict";window.jQuery.FlotChart.init()}();