Files
vue-chartjs/dist/vue-chartjs.min.js
2017-10-15 20:34:19 +07:00

1 line
32 KiB
JavaScript

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("chart.js")):"function"==typeof define&&define.amd?define("VueChartJs",["chart.js"],e):"object"==typeof exports?exports.VueChartJs=e(require("chart.js")):t.VueChartJs=e(t["chart.js"])}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=12)}([function(e,r){e.exports=t},function(t,e,r){"use strict";function n(t,e){return(0,i.default)(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeOptions=n;var a=r(14),i=function(t){return t&&t.__esModule?t:{default:t}}(a)},function(t,e){var r=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=r)},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){t.exports={default:r(27),__esModule:!0}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(33),a=r(8);t.exports=function(t){return n(a(t))}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){t.exports={default:r(53),__esModule:!0}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.mixins=e.Scatter=e.Bubble=e.Radar=e.PolarArea=e.Pie=e.Line=e.Doughnut=e.HorizontalBar=e.Bar=e.VueCharts=void 0;var a=r(13),i=n(a),s=r(17),o=n(s),u=r(18),c=n(u),l=r(19),f=n(l),d=r(20),h=n(d),p=r(21),y=n(p),b=r(22),g=n(b),v=r(23),_=n(v),m=r(24),j=n(m),w=r(25),O=n(w),x=r(55),P=n(x),k={version:P.default.version,Bar:i.default,HorizontalBar:o.default,Doughnut:c.default,Line:f.default,Pie:h.default,PolarArea:y.default,Radar:g.default,Bubble:_.default,Scatter:j.default,mixins:O.default};e.default=k,e.VueCharts=k,e.Bar=i.default,e.HorizontalBar=o.default,e.Doughnut=c.default,e.Line=f.default,e.Pie=h.default,e.PolarArea=y.default,e.Radar=g.default,e.Bubble=_.default,e.Scatter=j.default,e.mixins=O.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"bar-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{scales:{yAxes:[{ticks:{beginAtZero:!0},gridLines:{display:!1}}],xAxes:[{gridLines:{display:!1},categoryPercentage:.5,barPercentage:.2}]}},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e){var r=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"bar",data:t,options:r,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){(function(t,r){function n(t,e){return t.set(e[0],e[1]),t}function a(t,e){return t.add(e),t}function i(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function s(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););return t}function o(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}function u(t,e,r,n){var a=-1,i=t?t.length:0;for(n&&i&&(r=t[++a]);++a<i;)r=e(r,t[a],a,t);return r}function c(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function l(t,e){return null==t?void 0:t[e]}function f(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function d(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function h(t,e){return function(r){return t(e(r))}}function p(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function y(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function b(){this.__data__=Ye?Ye(null):{}}function g(t){return this.has(t)&&delete this.__data__[t]}function v(t){var e=this.__data__;if(Ye){var r=e[t];return r===Ft?void 0:r}return Le.call(e,t)?e[t]:void 0}function _(t){var e=this.__data__;return Ye?void 0!==e[t]:Le.call(e,t)}function m(t,e){return this.__data__[t]=Ye&&void 0===e?Ft:e,this}function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function w(){this.__data__=[]}function O(t){var e=this.__data__,r=T(e,t);return!(r<0)&&(r==e.length-1?e.pop():Re.call(e,r,1),!0)}function x(t){var e=this.__data__,r=T(e,t);return r<0?void 0:e[r][1]}function P(t){return T(this.__data__,t)>-1}function k(t,e){var r=this.__data__,n=T(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}function C(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function S(){this.__data__={hash:new y,map:new(He||j),string:new y}}function $(t){return ht(this,t).delete(t)}function A(t){return ht(this,t).get(t)}function M(t){return ht(this,t).has(t)}function I(t,e){return ht(this,t).set(t,e),this}function L(t){this.__data__=new j(t)}function N(){this.__data__=new j}function D(t){return this.__data__.delete(t)}function E(t){return this.__data__.get(t)}function B(t){return this.__data__.has(t)}function z(t,e){var r=this.__data__;if(r instanceof j){var n=r.__data__;if(!He||n.length<Vt-1)return n.push([t,e]),this;r=this.__data__=new C(n)}return r.set(t,e),this}function V(t,e){var r=cr(t)||kt(t)?c(t.length,String):[],n=r.length,a=!!n;for(var i in t)!e&&!Le.call(t,i)||a&&("length"==i||vt(i,n))||r.push(i);return r}function F(t,e,r){(void 0===r||Pt(t[e],r))&&("number"!=typeof e||void 0!==r||e in t)||(t[e]=r)}function J(t,e,r){var n=t[e];Le.call(t,e)&&Pt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function T(t,e){for(var r=t.length;r--;)if(Pt(t[r][0],e))return r;return-1}function R(t,e){return t&&lt(e,Dt(e),t)}function U(t,e,r,n,a,i,o){var u;if(n&&(u=i?n(t,a,i,o):n(t)),void 0!==u)return u;if(!Mt(t))return t;var c=cr(t);if(c){if(u=yt(t),!e)return ct(t,u)}else{var l=ur(t),d=l==Wt||l==Zt;if(lr(t))return et(t,e);if(l==Ht||l==Tt||d&&!i){if(f(t))return i?t:{};if(u=bt(d?{}:t),!e)return ft(t,R(u,t))}else{if(!ge[l])return i?t:{};u=gt(t,l,U,e)}}o||(o=new L);var h=o.get(t);if(h)return h;if(o.set(t,u),!c)var p=r?dt(t):Dt(t);return s(p||t,function(a,i){p&&(i=a,a=t[i]),J(u,i,U(a,e,r,n,i,t,o))}),u}function W(t){return Mt(t)?Je(t):{}}function Z(t,e,r){var n=e(t);return cr(t)?n:o(n,r(t))}function q(t){return De.call(t)}function G(t){return!(!Mt(t)||jt(t))&&($t(t)||f(t)?Ee:pe).test(xt(t))}function H(t){return It(t)&&At(t.length)&&!!be[De.call(t)]}function K(t){if(!wt(t))return Ze(t);var e=[];for(var r in Object(t))Le.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Q(t){if(!Mt(t))return Ot(t);var e=wt(t),r=[];for(var n in t)("constructor"!=n||!e&&Le.call(t,n))&&r.push(n);return r}function X(t,e,r,n,a){if(t!==e){if(!cr(e)&&!fr(e))var i=Q(e);s(i||e,function(s,o){if(i&&(o=s,s=e[o]),Mt(s))a||(a=new L),Y(t,e,o,r,X,n,a);else{var u=n?n(t[o],s,o+"",t,e,a):void 0;void 0===u&&(u=s),F(t,o,u)}})}}function Y(t,e,r,n,a,i,s){var o=t[r],u=e[r],c=s.get(u);if(c)return void F(t,r,c);var l=i?i(o,u,r+"",t,e,s):void 0,f=void 0===l;f&&(l=u,cr(u)||fr(u)?cr(o)?l=o:St(o)?l=ct(o):(f=!1,l=U(u,!0)):Lt(u)||kt(u)?kt(o)?l=Nt(o):!Mt(o)||n&&$t(o)?(f=!1,l=U(u,!0)):l=o:f=!1),f&&(s.set(u,l),a(l,u,n,i,s),s.delete(u)),F(t,r,l)}function tt(t,e){return e=qe(void 0===e?t.length-1:e,0),function(){for(var r=arguments,n=-1,a=qe(r.length-e,0),s=Array(a);++n<a;)s[n]=r[e+n];n=-1;for(var o=Array(e+1);++n<e;)o[n]=r[n];return o[e]=s,i(t,this,o)}}function et(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function rt(t){var e=new t.constructor(t.byteLength);return new Ve(e).set(new Ve(t)),e}function nt(t,e){var r=e?rt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function at(t,e,r){return u(e?r(d(t),!0):d(t),n,new t.constructor)}function it(t){var e=new t.constructor(t.source,he.exec(t));return e.lastIndex=t.lastIndex,e}function st(t,e,r){return u(e?r(p(t),!0):p(t),a,new t.constructor)}function ot(t){return sr?Object(sr.call(t)):{}}function ut(t,e){var r=e?rt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function ct(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function lt(t,e,r,n){r||(r={});for(var a=-1,i=e.length;++a<i;){var s=e[a],o=n?n(r[s],t[s],s,r,t):void 0;J(r,s,void 0===o?t[s]:o)}return r}function ft(t,e){return lt(t,or(t),e)}function dt(t){return Z(t,Dt,or)}function ht(t,e){var r=t.__data__;return mt(e)?r["string"==typeof e?"string":"hash"]:r.map}function pt(t,e){var r=l(t,e);return G(r)?r:void 0}function yt(t){var e=t.length,r=t.constructor(e);return e&&"string"==typeof t[0]&&Le.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function bt(t){return"function"!=typeof t.constructor||wt(t)?{}:W(Fe(t))}function gt(t,e,r,n){var a=t.constructor;switch(e){case ee:return rt(t);case Rt:case Ut:return new a(+t);case re:return nt(t,n);case ne:case ae:case ie:case se:case oe:case ue:case ce:case le:case fe:return ut(t,n);case qt:return at(t,n,r);case Gt:case Xt:return new a(t);case Kt:return it(t);case Qt:return st(t,n,r);case Yt:return ot(t)}}function vt(t,e){return!!(e=null==e?Jt:e)&&("number"==typeof t||ye.test(t))&&t>-1&&t%1==0&&t<e}function _t(t,e,r){if(!Mt(r))return!1;var n=typeof e;return!!("number"==n?Ct(r)&&vt(e,r.length):"string"==n&&e in r)&&Pt(r[e],t)}function mt(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function jt(t){return!!Me&&Me in t}function wt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||$e)}function Ot(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}function xt(t){if(null!=t){try{return Ie.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Pt(t,e){return t===e||t!==t&&e!==e}function kt(t){return St(t)&&Le.call(t,"callee")&&(!Te.call(t,"callee")||De.call(t)==Tt)}function Ct(t){return null!=t&&At(t.length)&&!$t(t)}function St(t){return It(t)&&Ct(t)}function $t(t){var e=Mt(t)?De.call(t):"";return e==Wt||e==Zt}function At(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Jt}function Mt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function It(t){return!!t&&"object"==typeof t}function Lt(t){if(!It(t)||De.call(t)!=Ht||f(t))return!1;var e=Fe(t);if(null===e)return!0;var r=Le.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ie.call(r)==Ne}function Nt(t){return lt(t,Et(t))}function Dt(t){return Ct(t)?V(t):K(t)}function Et(t){return Ct(t)?V(t,!0):Q(t)}function Bt(){return[]}function zt(){return!1}var Vt=200,Ft="__lodash_hash_undefined__",Jt=9007199254740991,Tt="[object Arguments]",Rt="[object Boolean]",Ut="[object Date]",Wt="[object Function]",Zt="[object GeneratorFunction]",qt="[object Map]",Gt="[object Number]",Ht="[object Object]",Kt="[object RegExp]",Qt="[object Set]",Xt="[object String]",Yt="[object Symbol]",te="[object WeakMap]",ee="[object ArrayBuffer]",re="[object DataView]",ne="[object Float32Array]",ae="[object Float64Array]",ie="[object Int8Array]",se="[object Int16Array]",oe="[object Int32Array]",ue="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",fe="[object Uint32Array]",de=/[\\^$.*+?()[\]{}|]/g,he=/\w*$/,pe=/^\[object .+?Constructor\]$/,ye=/^(?:0|[1-9]\d*)$/,be={};be[ne]=be[ae]=be[ie]=be[se]=be[oe]=be[ue]=be[ce]=be[le]=be[fe]=!0,be[Tt]=be["[object Array]"]=be[ee]=be[Rt]=be[re]=be[Ut]=be["[object Error]"]=be[Wt]=be[qt]=be[Gt]=be[Ht]=be[Kt]=be[Qt]=be[Xt]=be[te]=!1;var ge={};ge[Tt]=ge["[object Array]"]=ge[ee]=ge[re]=ge[Rt]=ge[Ut]=ge[ne]=ge[ae]=ge[ie]=ge[se]=ge[oe]=ge[qt]=ge[Gt]=ge[Ht]=ge[Kt]=ge[Qt]=ge[Xt]=ge[Yt]=ge[ue]=ge[ce]=ge[le]=ge[fe]=!0,ge["[object Error]"]=ge[Wt]=ge[te]=!1;var ve="object"==typeof t&&t&&t.Object===Object&&t,_e="object"==typeof self&&self&&self.Object===Object&&self,me=ve||_e||Function("return this")(),je="object"==typeof e&&e&&!e.nodeType&&e,we=je&&"object"==typeof r&&r&&!r.nodeType&&r,Oe=we&&we.exports===je,xe=Oe&&ve.process,Pe=function(){try{return xe&&xe.binding("util")}catch(t){}}(),ke=Pe&&Pe.isTypedArray,Ce=Array.prototype,Se=Function.prototype,$e=Object.prototype,Ae=me["__core-js_shared__"],Me=function(){var t=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ie=Se.toString,Le=$e.hasOwnProperty,Ne=Ie.call(Object),De=$e.toString,Ee=RegExp("^"+Ie.call(Le).replace(de,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=Oe?me.Buffer:void 0,ze=me.Symbol,Ve=me.Uint8Array,Fe=h(Object.getPrototypeOf,Object),Je=Object.create,Te=$e.propertyIsEnumerable,Re=Ce.splice,Ue=Object.getOwnPropertySymbols,We=Be?Be.isBuffer:void 0,Ze=h(Object.keys,Object),qe=Math.max,Ge=pt(me,"DataView"),He=pt(me,"Map"),Ke=pt(me,"Promise"),Qe=pt(me,"Set"),Xe=pt(me,"WeakMap"),Ye=pt(Object,"create"),tr=xt(Ge),er=xt(He),rr=xt(Ke),nr=xt(Qe),ar=xt(Xe),ir=ze?ze.prototype:void 0,sr=ir?ir.valueOf:void 0;y.prototype.clear=b,y.prototype.delete=g,y.prototype.get=v,y.prototype.has=_,y.prototype.set=m,j.prototype.clear=w,j.prototype.delete=O,j.prototype.get=x,j.prototype.has=P,j.prototype.set=k,C.prototype.clear=S,C.prototype.delete=$,C.prototype.get=A,C.prototype.has=M,C.prototype.set=I,L.prototype.clear=N,L.prototype.delete=D,L.prototype.get=E,L.prototype.has=B,L.prototype.set=z;var or=Ue?h(Ue,Object):Bt,ur=q;(Ge&&ur(new Ge(new ArrayBuffer(1)))!=re||He&&ur(new He)!=qt||Ke&&"[object Promise]"!=ur(Ke.resolve())||Qe&&ur(new Qe)!=Qt||Xe&&ur(new Xe)!=te)&&(ur=function(t){var e=De.call(t),r=e==Ht?t.constructor:void 0,n=r?xt(r):void 0;if(n)switch(n){case tr:return re;case er:return qt;case rr:return"[object Promise]";case nr:return Qt;case ar:return te}return e});var cr=Array.isArray,lr=We||zt,fr=ke?function(t){return function(e){return t(e)}}(ke):H,dr=function(t){return tt(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(a--,i):void 0,s&&_t(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),e=Object(e);++n<a;){var o=r[n];o&&t(e,o,n,i)}return e})}(function(t,e,r){X(t,e,r)});r.exports=dr}).call(e,r(15),r(16)(t))},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"horizontalbar-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{scales:{yAxes:[{ticks:{beginAtZero:!0},gridLines:{display:!1}}],xAxes:[{gridLines:{display:!1},categoryPercentage:.5,barPercentage:.2}]}},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e,r){var n=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"horizontalBar",data:t,options:n,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"doughnut-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e){var r=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"doughnut",data:t,options:r,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"line-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{scales:{yAxes:[{ticks:{beginAtZero:!0},gridLines:{display:!1}}],xAxes:[{gridLines:{display:!1}}]}},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e){var r=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"line",data:t,options:r,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"pie-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e){var r=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"pie",data:t,options:r,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"polar-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e){var r=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"polarArea",data:t,options:r,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"radar-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e){var r=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"radar",data:t,options:r,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"bubble-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{scales:{yAxes:[{ticks:{beginAtZero:!0},gridLines:{display:!1}}],xAxes:[{gridLines:{display:!1},categoryPercentage:.5,barPercentage:.2}]}},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e){var r=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"bubble",data:t,options:r,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(1);e.default={render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:"scatter-chart",type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object}},data:function(){return{_chart:null,defaultOptions:{scales:{xAxes:[{type:"linear",position:"bottom"}]}},plugins:[]}},methods:{addPlugin:function(t){this.plugins.push(t)},renderChart:function(t,e){var r=(0,i.mergeOptions)(this.defaultOptions,e);this.$data._chart=new a.default(this.$refs.canvas.getContext("2d"),{type:"scatter",data:t,options:r,plugins:this.plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=r(26),i=n(a),s=r(54),o=n(s);e.default={reactiveData:i.default,reactiveProp:o.default}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=r(7),i=n(a),s=r(11),o=n(s);t.exports={data:function(){return{chartData:null}},watch:{chartData:{handler:function(t,e){if(e){var r=this.$data._chart,n=t.datasets.map(function(t){return t.label}),a=e.datasets.map(function(t){return t.label}),s=(0,o.default)(a);(0,o.default)(n)===s&&e.datasets.length===t.datasets.length?(t.datasets.forEach(function(t,n){var a=(0,i.default)(e.datasets[n]),s=(0,i.default)(t);a.filter(function(t){return"_meta"!==t&&-1===s.indexOf(t)}).forEach(function(t){delete r.data.datasets[n][t]});for(var o in t)t.hasOwnProperty(o)&&(r.data.datasets[n][o]=t[o])}),t.hasOwnProperty("labels")&&(r.data.labels=t.labels),t.hasOwnProperty("xLabels")&&(r.data.xLabels=t.xLabels),t.hasOwnProperty("yLabels")&&(r.data.yLabels=t.yLabels),r.update()):(r.destroy(),this.renderChart(this.chartData,this.options))}else this.renderChart(this.chartData,this.options)}}}}},function(t,e,r){r(28),t.exports=r(2).Object.keys},function(t,e,r){var n=r(29),a=r(30);r(42)("keys",function(){return function(t){return a(n(t))}})},function(t,e,r){var n=r(8);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(31),a=r(41);t.exports=Object.keys||function(t){return n(t,a)}},function(t,e,r){var n=r(32),a=r(9),i=r(35)(!1),s=r(38)("IE_PROTO");t.exports=function(t,e){var r,o=a(t),u=0,c=[];for(r in o)r!=s&&n(o,r)&&c.push(r);for(;e.length>u;)n(o,r=e[u++])&&(~i(c,r)||c.push(r));return c}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(9),a=r(36),i=r(37);t.exports=function(t){return function(e,r,s){var o,u=n(e),c=a(u.length),l=i(s,c);if(t&&r!=r){for(;c>l;)if((o=u[l++])!=o)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},function(t,e,r){var n=r(10),a=Math.min;t.exports=function(t){return t>0?a(n(t),9007199254740991):0}},function(t,e,r){var n=r(10),a=Math.max,i=Math.min;t.exports=function(t,e){return t=n(t),t<0?a(t+e,0):i(t,e)}},function(t,e,r){var n=r(39)("keys"),a=r(40);t.exports=function(t){return n[t]||(n[t]=a(t))}},function(t,e,r){var n=r(3),a=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return a[t]||(a[t]={})}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(43),a=r(2),i=r(6);t.exports=function(t,e){var r=(a.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*i(function(){r(1)}),"Object",s)}},function(t,e,r){var n=r(3),a=r(2),i=r(44),s=r(46),o=function(t,e,r){var u,c,l,f=t&o.F,d=t&o.G,h=t&o.S,p=t&o.P,y=t&o.B,b=t&o.W,g=d?a:a[e]||(a[e]={}),v=g.prototype,_=d?n:h?n[e]:(n[e]||{}).prototype;d&&(r=e);for(u in r)(c=!f&&_&&void 0!==_[u])&&u in g||(l=c?_[u]:r[u],g[u]=d&&"function"!=typeof _[u]?r[u]:y&&c?i(l,n):b&&_[u]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):p&&"function"==typeof l?i(Function.call,l):l,p&&((g.virtual||(g.virtual={}))[u]=l,t&o.R&&v&&!v[u]&&s(v,u,l)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,t.exports=o},function(t,e,r){var n=r(45);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,a){return t.call(e,r,n,a)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){var n=r(47),a=r(52);t.exports=r(5)?function(t,e,r){return n.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(48),a=r(49),i=r(51),s=Object.defineProperty;e.f=r(5)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),a)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(4);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){t.exports=!r(5)&&!r(6)(function(){return 7!=Object.defineProperty(r(50)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(4),a=r(3).document,i=n(a)&&n(a.createElement);t.exports=function(t){return i?a.createElement(t):{}}},function(t,e,r){var n=r(4);t.exports=function(t,e){if(!n(t))return t;var r,a;if(e&&"function"==typeof(r=t.toString)&&!n(a=r.call(t)))return a;if("function"==typeof(r=t.valueOf)&&!n(a=r.call(t)))return a;if(!e&&"function"==typeof(r=t.toString)&&!n(a=r.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(2),a=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return a.stringify.apply(a,arguments)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=r(7),i=n(a),s=r(11),o=n(s);t.exports={props:{chartData:{required:!0}},watch:{chartData:{handler:function(t,e){if(e){var r=this.$data._chart,n=t.datasets.map(function(t){return t.label}),a=e.datasets.map(function(t){return t.label}),s=(0,o.default)(a);(0,o.default)(n)===s&&e.datasets.length===t.datasets.length?(t.datasets.forEach(function(t,n){var a=(0,i.default)(e.datasets[n]),s=(0,i.default)(t);a.filter(function(t){return"_meta"!==t&&-1===s.indexOf(t)}).forEach(function(t){delete r.data.datasets[n][t]});for(var o in t)t.hasOwnProperty(o)&&(r.data.datasets[n][o]=t[o])}),t.hasOwnProperty("labels")&&(r.data.labels=t.labels),t.hasOwnProperty("xLabels")&&(r.data.xLabels=t.xLabels),t.hasOwnProperty("yLabels")&&(r.data.yLabels=t.yLabels),r.update()):(r.destroy(),this.renderChart(this.chartData,this.options))}else this.renderChart(this.chartData,this.options)}}}}},function(t,e){t.exports={name:"vue-chartjs",version:"3.0.0",description:"Vue.js wrapper for chart.js for creating beautiful charts.",author:"Jakub Juszczak <jakub@posteo.de>",homepage:"http://vue-chartjs.org",license:"MIT",contributors:[{name:"Thorsten Lünborg",web:"https://github.com/LinusBorg"},{name:"Juan Carlos Alonso",web:"https://github.com/jcalonso"}],maintainers:[{name:"Jakub Juszczak",email:"jakub@posteo.de",web:"http://www.jakubjuszczak.de"}],repository:{type:"git",url:"git+ssh://git@github.com:apertureless/vue-chartjs.git"},bugs:{url:"https://github.com/apertureless/vue-chartjs/issues"},keywords:["ChartJs","Vue","Visualisation","Wrapper","Charts"],main:"dist/vue-chartjs.js",unpkg:"dist/vue-chartjs.full.min.js",module:"es/index.js","jsnext:main":"es/index.js",files:["src","dist","es"],scripts:{dev:"node build/dev-server.js",build:"yarn run release && yarn run build:es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es",unit:"karma start test/unit/karma.conf.js --single-run",e2e:"node test/e2e/runner.js",test:"npm run unit",lint:"eslint --ext .js,.vue src test/unit/specs test/e2e/specs",release:"webpack --progress --hide-modules --config ./build/webpack.release.js && NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.min.js && webpack --progress --hide-modules --config ./build/webpack.release.full.js && NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.full.min.js",prepublish:"yarn run lint && yarn run test && yarn run build"},dependencies:{"lodash.merge":"^4.6.0"},peerDependencies:{"chart.js":"2.7.0",vue:"2.5.2"},devDependencies:{"babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-loader":"7.1.2","babel-plugin-transform-object-assign":"^6.22.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-2":"^6.24.1","babel-runtime":"^6.23.0",chai:"^3.5.0","chart.js":"2.7.0",chromedriver:"^2.28.0","connect-history-api-fallback":"^1.1.0","cross-env":"^3.2.4","cross-spawn":"^5.1.0","css-loader":"^0.28.0",eslint:"^3.19.0","eslint-config-standard":"^10.2.1","eslint-friendly-formatter":"^2.0.7","eslint-loader":"^1.7.1","eslint-plugin-html":"^2.0.1","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1","eventsource-polyfill":"^0.9.6",express:"^4.15.2","extract-text-webpack-plugin":"^3.0.1","file-loader":"^0.10.1","friendly-errors-webpack-plugin":"^1.6.1","function-bind":"^1.0.2","html-webpack-plugin":"^2.28.0","http-proxy-middleware":"^0.17.4","inject-loader":"^3.0.0","jasmine-core":"^2.5.2","json-loader":"^0.5.4",karma:"^1.5.0","karma-coverage":"^1.1.1","karma-jasmine":"^1.0.2","karma-mocha":"^1.2.0","karma-phantomjs-launcher":"^1.0.4","karma-phantomjs-shim":"^1.4.0","karma-sinon-chai":"^1.2.0","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"0.0.30","karma-webpack":"2",lolex:"^1.6.0",mocha:"^3.1.0",nightwatch:"^0.9.14",opn:"^5.1.0",ora:"^1.2.0","phantomjs-prebuilt":"^2.1.13",portfinder:"^1.0.13","selenium-server":"^3.3.1",shelljs:"^0.7.7",sinon:"^2.1.0","sinon-chai":"^2.9.0","url-loader":"^0.5.8",vue:"2.5.2","vue-hot-reload-api":"2.1.0","vue-html-loader":"^1.2.4","vue-loader":"^13.3.0","vue-style-loader":"3.0.1","vue-template-compiler":"2.5.2",webpack:"^3.7.1","webpack-dev-middleware":"^1.10.1","webpack-hot-middleware":"^2.17.1","webpack-merge":"^4.1.0"},engines:{node:">=6.9.0",npm:">= 3.0.0"},babel:{presets:["es2015"]},browserify:{transform:["babelify"]},greenkeeper:{ignore:["extract-text-webpack-plugin","karma-webpack","webpack","webpack-merge"]}}}])});