!function(n){"use strict";var o=function(){this.$body=n("body"),this.$realData=[]};o.prototype.createPlotGraph=function(o,t,a,e,r,i,l){n.plot(n(o),[{data:t,label:e[0],color:r[0]},{data:a,label:e[1],color:r[1]}],{series:{lines:{show:!0,fill:!0,lineWidth:1,fillColor:{colors:[{opacity:.2},{opacity:.9}]}},points:{show:!0},shadowSize:0},legend:{position:"nw"},legend:{position:"ne",margin:[0,-24],noColumns:0,backgroundColor:"transparent",labelBoxBorderColor:null,labelFormatter:function(o,t){return o+"&nbsp;&nbsp;"},width:30,height:2},grid:{hoverable:!0,clickable:!0,borderColor:i,borderWidth:0,labelMargin:10,backgroundColor:l},yaxis:{min:0,max:15,tickColor:"rgba(108, 120, 151, 0.1)",font:{color:"#8a93a9"}},xaxis:{tickColor:"rgba(108, 120, 151, 0.1)",font:{color:"#8a93a9"}},tooltip:!0,tooltipOpts:{content:"%s: Value of %x is %y",shifts:{x:-60,y:25},defaultTheme:!1}})},o.prototype.createPieGraph=function(o,t,a,e){var r=[{label:t[0],data:a[0]},{label:t[1],data:a[1]},{label:t[2],data:a[2]}],i={series:{pie:{show:!0}},legend:{show:!1},grid:{hoverable:!0,clickable:!0},colors:e,tooltip:!1,tooltipOpts:{content:"%s, %p.0%"}};n.plot(n(o),r,i)},o.prototype.init=function(){this.createPlotGraph("#website-stats",[[0,9],[1,8],[2,5],[3,8],[4,5],[5,14],[6,10]],[[0,5],[1,12],[2,4],[3,3],[4,12],[5,11],[6,14]],["Visits","Pages/Visit"],["#fab249","#ea6967"],"rgba(108, 120, 151, 0.1)","transparent");this.createPieGraph("#pie-chart #pie-chart-container",["Series 1","Series 2","Series 3"],[20,30,20],["rgba(73, 152, 250, 0.85)","rgba(234, 105, 103, 0.85)","rgba(255, 211, 79, 0.85)"])},n.Dashboard=new o,n.Dashboard.Constructor=o}(window.jQuery),function(o){"use strict";window.jQuery.Dashboard.init()}();