/**
* Theme: Xadmino
* Flot-Chart
* DEMO ONLY MINIFY
*/


!function(e){"use strict";var a=function(){this.$body=e("body"),this.$realData=[]};a.prototype.createPlotGraph=function(a,t,o,i,r,l,s){e.plot(e(a),[{data:t,label:i[0],color:r[0]},{data:o,label:i[1],color:r[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:l,borderWidth:1,labelMargin:10,backgroundColor:s},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}})},a.prototype.createPieGraph=function(a,t,o,i){var r=[{label:t[0],data:o[0]},{label:t[1],data:o[1]},{label:t[2],data:o[2]}],l={series:{pie:{show:!0}},legend:{show:!1},grid:{hoverable:!0,clickable:!0},colors:i,tooltip:!0,tooltipOpts:{content:"%s, %p.0%"}};e.plot(e(a),r,l)},a.prototype.randomData=function(){var e=300;for(this.$realData.length>0&&(this.$realData=this.$realData.slice(1));this.$realData.length<e;){var a=this.$realData.length>0?this.$realData[this.$realData.length-1]:50,t=a+10*Math.random()-5;0>t?t=0:t>100&&(t=100),this.$realData.push(t)}for(var o=[],i=0;i<this.$realData.length;++i)o.push([i,this.$realData[i]]);return o},a.prototype.createRealTimeGraph=function(a,t,o){var i=e.plot(a,[t],{colors:o,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}});return i},a.prototype.createDonutGraph=function(a,t,o,i){var r=[{label:t[0],data:o[0]},{label:t[1],data:o[1]},{label:t[2],data:o[2]},{label:t[3],data:o[3]},{label:t[4],data:o[4]}],l={series:{pie:{show:!0,innerRadius:.7}},legend:{show:!0,labelFormatter:function(e){return'<div style="font-size:14px;">&nbsp;'+e+"</div>"},labelBoxBorderColor:null,margin:50,width:20,padding:1},grid:{hoverable:!0,clickable:!0},colors:i,tooltip:!0,tooltipOpts:{content:"%s, %p.0%"}};e.plot(e(a),r,l)},a.prototype.createCombineGraph=function(a,t,o,i){var r=[{label:o[0],data:i[0],lines:{show:!0,fill:!0},points:{show:!0}},{label:o[1],data:i[1],lines:{show:!0},points:{show:!0}},{label:o[2],data:i[2],bars:{show:!0}}],l={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"}};e.plot(e(a),r,l)},a.prototype.init=function(){function a(){d.setData([p.randomData()]),d.draw(),setTimeout(a,e("html").hasClass("mobile-device")?1e3:1e3)}var t=[[0,9],[1,8],[2,5],[3,8],[4,5],[5,14],[6,10]],o=[[0,5],[1,12],[2,4],[3,3],[4,12],[5,8],[6,4]],i=["Service One","Service Two"],r=["#6e8cd7","#03a9f4"],l="#efefef",s="#fff";this.createPlotGraph("#website-stats",t,o,i,r,l,s);var n=["Series 1","Series 2","Series 3"],c=[20,30,15],h=["#60b1cc","#03a9f4","#01ba9a"];this.createPieGraph("#pie-chart #pie-chart-container",n,c,h);var d=this.createRealTimeGraph("#flotRealTime",this.randomData(),["#03a9f4"]);d.draw();var p=this;a();var b=["Series 1","Series 2","Series 3","Series 4","Series 5"],f=[35,20,10,15,20],u=["#03a9f4","#01ba9a","#dcdcdc","#6c85bd","#f8ca4e"];this.createDonutGraph("#donut-chart #donut-chart-container",b,f,u)},e.FlotChart=new a,e.FlotChart.Constructor=a}(window.jQuery),function(e){"use strict";e.FlotChart.init()}(window.jQuery);



