text: !function(s){"use strict";var e=function(){this.$body=s("body"),this.$realData=[]};e.prototype.createPlotGraph=function(e,t,a,o,i,r,l){s.plot(s(e),[{data:t,label:o[0],color:i[0]},{data:a,label:o[1],color:i[1]}],{series:{lines:{show:!0,fill:!0,lineWidth:1,fillColor:{colors:[{opacity:.5},{opacity:.5}]}},points:{show:!0},shadowSize:0},legend:{position:"nw"},grid:{hoverable:!0,clickable:!0,borderColor:r,borderWidth:1,labelMargin:10,backgroundColor:l},yaxis:{min:0,max:15,color:"rgba(0,0,0,0.1)"},xaxis:{color:"rgba(0,0,0,0.1)"},tooltip:!0,tooltipOpts:{content:"%s: Value of %x is %y",shifts:{x:-60,y:25},defaultTheme:!1}})},e.prototype.createPieGraph=function(e,t,a,o){var i=[{label:t[0],data:a[0]},{label:t[1],data:a[1]},{label:t[2],data:a[2]}],r={series:{pie:{show:!0}},legend:{show:!1},grid:{hoverable:!0,clickable:!0},colors:o,tooltip:!0,tooltipOpts:{content:"%s, %p.0%"}};s.plot(s(e),i,r)},e.prototype.randomData=function(){for(0<this.$realData.length&&(this.$realData=this.$realData.slice(1));this.$realData.length<300;){var e=(0<this.$realData.length?this.$realData[this.$realData.length-1]:50)+10*Math.random()-5;e<0?e=0:100<e&&(e=100),this.$realData.push(e)}for(var t=[],a=0;a<this.$realData.length;++a)t.push([a,this.$realData[a]]);return t},e.prototype.createRealTimeGraph=function(e,t,a){return s.plot(e,[t],{colors:a,series:{lines:{show:!0,fill:!0,lineWidth:1,fillColor:{colors:[{opacity:.45},{opacity:.45}]}},points:{show:!1},shadowSize:0},grid:{show:!0,aboveData:!1,color:"#dcdcdc",labelMargin:15,axisMargin:0,borderWidth:0,borderColor:null,minBorderMargin:5,clickable:!0,hoverable:!0,autoHighlight:!1,mouseActiveRadius:20},tooltip:!0,tooltipOpts:{content:"Value is : %y.0%",shifts:{x:-30,y:-50}},yaxis:{min:0,max:100,color:"rgba(0,0,0,0.1)"},xaxis:{show:!1}})},e.prototype.createDonutGraph=function(e,t,a,o){var i=[{label:t[0],data:a[0]},{label:t[1],data:a[1]},{label:t[2],data:a[2]},{label:t[3],data:a[3]},{label:t[4],data:a[4]}],r={series:{pie:{show:!0,innerRadius:.7}},legend:{show:!0,labelFormatter:function(e,t){return'<div style="font-size:14px;">&nbsp;'+e+"</div>"},labelBoxBorderColor:null,margin:50,width:20,padding:1},grid:{hoverable:!0,clickable:!0},colors:o,tooltip:!0,tooltipOpts:{content:"%s, %p.0%"}};s.plot(s(e),i,r)},e.prototype.createCombineGraph=function(e,t,a,o){var i=[{label:a[0],data:o[0],lines:{show:!0,fill:!0},points:{show:!0}},{label:a[1],data:o[1],lines:{show:!0},points:{show:!0}},{label:a[2],data:o[2],bars:{show:!0}}],r={xaxis:{ticks:t},series:{shadowSize:0},grid:{hoverable:!0,clickable:!0,tickColor:"#f9f9f9",borderWidth:1,borderColor:"#eeeeee"},colors:["#317eeb","#1a2942","#60b1cc"],tooltip:!0,tooltipOpts:{defaultTheme:!1},legend:{position:"nw"}};s.plot(s(e),i,r)},e.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,8],[6,4]],["Service One","Service Two"],["#04a2b3","#3292e0"],"#efefef","#fff");this.createPieGraph("#pie-chart #pie-chart-container",["Series 1","Series 2","Series 3"],[20,30,15],["#dcdcdc","#3292e0","#04a2b3"]);var t=this.createRealTimeGraph("#flotRealTime",this.randomData(),["#3292e0"]);t.draw();var a=this;!function e(){t.setData([a.randomData()]),t.draw(),setTimeout(e,(s("html").hasClass("mobile-device"),1e3))}();this.createDonutGraph("#donut-chart #donut-chart-container",["Series 1","Series 2","Series 3","Series 4","Series 5"],[35,20,10],["#3292e0","#04a2b3","#dcdcdc"])},s.FlotChart=new e,s.FlotChart.Constructor=e}(window.jQuery),function(e){"use strict";window.jQuery.FlotChart.init()}();