/*! * Codebase - v3.0.0 * @author pixelcave - https://pixelcave.com * Copyright (c) 2018 */ !function(t){var e={};function o(r){if(e[r])return e[r].exports;var l=e[r]={i:r,l:!1,exports:{}};return t[r].call(l.exports,l,l.exports,o),l.l=!0,l.exports}o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var l in t)o.d(r,l,function(e){return t[e]}.bind(null,l));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=4)}({4:function(t,e,o){t.exports=o(5)},5:function(t,e){function o(t,e){for(var o=0;o0&&(f=f.slice(1));f.length<300;){var t=(f.length>0?f[f.length-1]:50)+10*Math.random()-5;t<0&&(t=0),t>100&&(t=100),f.push(t)}for(var e=[],o=0;o"+r+"":1===o.seriesIndex?""+r+" sales":""+r+" tickets",jQuery('
'+h+"
").css({top:o.pageY-45,left:o.pageX+5}).appendTo("body").show()}}else jQuery(".js-flot-tooltip").remove(),p=null})}r.length&&jQuery.plot(r,[{label:"Sales",data:n},{label:"Earnings",data:i}],{colors:["#555555","#26c6da"],series:{stack:!0,lines:{show:!0,fill:!0}},lines:{show:!0,lineWidth:0,fill:!0,fillColor:{colors:[{opacity:1},{opacity:1}]}},legend:{show:!0,position:"nw",sorted:!0,backgroundOpacity:0},grid:{borderWidth:0},yaxis:{tickColor:"#ffffff",ticks:3},xaxis:{ticks:s,tickColor:"#f5f5f5"}}),a.length&&jQuery.plot(a,[{label:"Sales Before Release",data:[[1,500],[4,600],[7,1e3],[10,600],[13,800],[16,1200],[19,1500],[22,1600],[25,2500],[28,2700],[31,3500],[34,4500]],bars:{show:!0,lineWidth:0,fillColor:{colors:[{opacity:.75},{opacity:.75}]}}},{label:"Sales After Release",data:[[2,900],[5,1200],[8,2e3],[11,1200],[14,1600],[17,2400],[20,3e3],[23,3200],[26,5e3],[29,5400],[32,7e3],[35,9e3]],bars:{show:!0,lineWidth:0,fillColor:{colors:[{opacity:.75},{opacity:.75}]}}}],{colors:["#ef5350","#9ccc65"],legend:{show:!0,position:"nw",backgroundOpacity:0},grid:{borderWidth:0},yaxis:{ticks:3,tickColor:"#f5f5f5"},xaxis:{ticks:[[2,"Jan"],[5,"Feb"],[8,"Mar"],[11,"Apr"],[14,"May"],[17,"Jun"],[20,"Jul"],[23,"Aug"],[26,"Sep"],[29,"Oct"],[32,"Nov"],[35,"Dec"]],tickColor:"#f5f5f5"}}),l.length&&jQuery.plot(l,[{label:"Sales",data:15},{label:"Tickets",data:12},{label:"Earnings",data:73}],{colors:["#26c6da","#ffca28","#9ccc65"],legend:{show:!1},series:{pie:{show:!0,radius:1,label:{show:!0,radius:2/3,formatter:function(t,e){return'
'+t+"
"+Math.round(e.percent)+"%
"},background:{opacity:.75,color:"#000000"}}}}})}},{key:"init",value:function(){this.initRandomEasyPieChart(),this.initChartsSparkline(),this.initChartsChartJS(),this.initChartsFlot()}}],(r=null)&&o(e.prototype,r),l&&o(e,l),t}();jQuery(function(){r.init()})}});