@chartiful/vue-vertical-bar-graph
Version:
Vue vertical bar graph.
2 lines • 32.2 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vertical-bar-graph"]=e(require("vue")):t["vertical-bar-graph"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?c(t):i(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),c=n("c04e"),s=n("5135"),u=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),u)try{return f(t,e)}catch(n){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var c in i){var s=r[c],u=s&&s.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(f){u.forEach=o}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),c=o("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),c=n("ce4e"),s=n("e893"),u=n("94ca");t.exports=function(t,e){var n,f,l,h,d,b,p=t.target,y=t.global,x=t.stat;if(f=y?r:x?r[p]||c(p,{}):(r[p]||{}).prototype,f)for(l in e){if(d=e[l],t.noTargetGet?(b=i(f,l),h=b&&b.value):h=f[l],n=u(y?l:p+(x?".":"#")+l,t.forced),!n&&void 0!==h){if(typeof d===typeof h)continue;s(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(f,l,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),c=o.process,s=c&&c.versions,u=s&&s.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),c=r.length,s=0;while(c>s)i.f(t,n=r[s++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},4160:function(t,e,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var c,s=r(e),u=i(s.length),f=o(a,u);if(t&&n!=n){while(u>f)if(c=s[f++],c!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=n("ae40"),c=o("filter"),s=a("filter");r({target:"Array",proto:!0,forced:!c||!s},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),c=n("da84"),s=n("861d"),u=n("9112"),f=n("5135"),l=n("f772"),h=n("d012"),d=c.WeakMap,b=function(t){return o(t)?i(t):r(t,{})},p=function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var y=new d,x=y.get,g=y.has,v=y.set;r=function(t,e){return v.call(y,t,e),e},i=function(t){return x.call(y,t)||{}},o=function(t){return g.call(y,t)}}else{var m=l("state");h[m]=!0,r=function(t,e){return u(t,m,e),e},i=function(t){return f(t,m)?t[m]:{}},o=function(t){return f(t,m)}}t.exports={set:r,get:i,has:o,enforce:b,getterFor:p}},"6c82":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class r{constructor({data:t,labels:e,startAtZero:n=!0,height:r,width:i,hasXAxisLabels:o=!0,hasYAxisLabels:a=!0,xAxisLabelCount:c,xAxisLabelStyle:s,yAxisLabelStyle:u,hasXAxisBackgroundLines:f=!0,hasYAxisBackgroundLines:l=!0,xAxisBackgroundLineStyle:h={strokeWidth:1,color:"#000000"},yAxisBackgroundLineStyle:d={strokeWidth:1,color:"#000000"}}){this.X_AXIS_LABEL_WIDTH=50,this.Y_AXIS_LABEL_HEIGHT=50,this.data=t,this.labels=e||[...new Array(this.data.length)].map((t,e)=>e.toString()),this.startAtZero=n,this.height=r,this.width=i,this.hasXAxisLabels=o,this.hasYAxisLabels=a,this.xAxisLabelStyle=s,this.yAxisLabelStyle=u,this.hasXAxisBackgroundLines=f,this.hasYAxisBackgroundLines=l,this.yAxisBackgroundLineStyle=d,this.xAxisBackgroundLineStyle=h,this.xAxisLabelCount=void 0===c?4:c,this.maxVal=Math.max(...this.data),this.minVal=Math.min(...this.data),this.xAxisLabelWidth=o?this.X_AXIS_LABEL_WIDTH:0,this.xAxisLabelPosition="left",this.leftAlignedXAxisLabelWidth=o?this.X_AXIS_LABEL_WIDTH:0,this.yAxisLabelHeight=a?this.Y_AXIS_LABEL_HEIGHT:0,this.yAxisLabelStyle&&(this.yAxisLabelHeight=this.yAxisLabelStyle.height||this.yAxisLabelHeight),this.yDistanceBetweenXLabels=(r-this.yAxisLabelHeight)/this.xAxisLabelCount,this.xAxisLabelStyle&&(this.xAxisLabelWidth=this.xAxisLabelStyle.width||this.xAxisLabelWidth,this.xAxisLabelPosition=this.xAxisLabelStyle.position||this.xAxisLabelPosition,this.leftAlignedXAxisLabelWidth="left"===this.xAxisLabelPosition?this.xAxisLabelWidth:0),this.yLabelSlotWidth=(this.width-this.xAxisLabelWidth)/this.data.length,this.deltaBetweenGreatestAndLeast=this.startAtZero?Math.max(...this.data)||1:Math.max(...this.data)-Math.min(...this.data)||1,this.minVal>=0&&this.maxVal>=0?this.baseHeight=r:this.minVal<0&&this.maxVal>0?this.baseHeight=r*this.maxVal/this.deltaBetweenGreatestAndLeast:this.baseHeight=0}calcDataPointHeight(t){const e=Math.max(...this.data);return this.startAtZero?(this.height-this.yAxisLabelHeight)*(t/this.maxVal):this.minVal>=0&&e>=0?(this.height-this.yAxisLabelHeight)*((t-this.minVal)/this.deltaBetweenGreatestAndLeast):this.height*((t-e)/this.deltaBetweenGreatestAndLeast)}renderXAxisLines(){let t="#00000",e=1;this.xAxisBackgroundLineStyle&&(t=this.xAxisBackgroundLineStyle.color||t,e=this.xAxisBackgroundLineStyle.strokeWidth||e);let n="";return[...new Array((this.xAxisLabelCount||4)+1)].forEach((r,i)=>{n+=`<line\n x1="${this.leftAlignedXAxisLabelWidth}"\n x2="${this.width-(this.leftAlignedXAxisLabelWidth?0:this.xAxisLabelWidth)}"\n y1="${this.yDistanceBetweenXLabels*i}"\n y2="${this.yDistanceBetweenXLabels*i}"\n y1="0"\n y2="${this.baseHeight}"\n stroke="${t}"\n strokeDasharray="5, 10"\n strokeWidth="${e}"\n />`}),n}renderYAxisLines(){let t="#00000",e=1;this.yAxisBackgroundLineStyle&&(t=this.yAxisBackgroundLineStyle.color||t,e=this.yAxisBackgroundLineStyle.strokeWidth||e);let n="";return[...new Array(Math.ceil(this.data.length))].forEach((r,i)=>{n+=`<line\n key=${Math.random()}\n x1=${i*this.yLabelSlotWidth+this.yLabelSlotWidth/2+this.leftAlignedXAxisLabelWidth}\n x2=${i*this.yLabelSlotWidth+this.yLabelSlotWidth/2+this.leftAlignedXAxisLabelWidth}\n y1=0\n y2=${this.baseHeight}\n stroke=${t}\n strokeDasharray=5, 10\n strokeWidth=${e}\n />`}),n}renderXAxisLabels(){let t=0,e=0,n=0,r="monospace",i=14,o=500,a="#000000",c="",s="",u=0;this.xAxisLabelStyle&&(t=this.xAxisLabelStyle.xOffset||t,e=this.xAxisLabelStyle.yOffset||e,n=this.xAxisLabelStyle.rotation||n,r=this.xAxisLabelStyle.fontFamily||r,i=this.xAxisLabelStyle.fontSize||i,o=this.xAxisLabelStyle.fontWeight||o,a=this.xAxisLabelStyle.color||a,c=this.xAxisLabelStyle.prefix||c,s=this.xAxisLabelStyle.suffix||s,u=this.xAxisLabelStyle.decimals||u);let f="";return[...new Array(this.xAxisLabelCount+1)].forEach((l,h)=>{const d=c+(this.deltaBetweenGreatestAndLeast/this.xAxisLabelCount*Math.abs(h-this.xAxisLabelCount-1)+(this.startAtZero?0:Math.min(...this.data))).toFixed(u).toString()+s,b=("right"===this.xAxisLabelPosition?this.width-this.xAxisLabelWidth:0)+t+i*d.length/2,p=this.yDistanceBetweenXLabels*h-this.yDistanceBetweenXLabels+i+e;f+=`<text\n key=${Math.random()}\n origin=${b}, ${p}\n x=${b}\n y=${p}\n transform=rotate(${n})\n text-anchor='middle'\n font-family=${r}\n font-size=${i}\n font-weights=${o}\n fill=${a}\n >\n ${d}\n </text>`}),f}renderYAxisLabels(){let t=0,e=0,n=0,r="monospace",i=14,o=500,a="#000000";this.yAxisLabelStyle&&(t=this.yAxisLabelStyle.xOffset||t,e=this.yAxisLabelStyle.yOffset||e,n=this.yAxisLabelStyle.rotation||n,r=this.yAxisLabelStyle.fontFamily||r,i=this.yAxisLabelStyle.fontSize||i,o=this.yAxisLabelStyle.fontWeight||o,a=this.yAxisLabelStyle.color||a);let c="";return this.labels.forEach((s,u)=>{const f=u*this.yLabelSlotWidth+this.yLabelSlotWidth/2+t+this.leftAlignedXAxisLabelWidth,l=this.baseHeight-i+e;c+=`<text\n key=${Math.random()}\n origin=${f}, ${l}\n x=${f}\n y=${l}\n transform=rotate(${n})\n text-anchor=middle\n font-family=${r}\n font-size=${i}\n font-weight=${o}\n fill=${a}\n >\n ${s}\n </text>\n `}),c}}e.default=r},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),c=n("8925"),s=n("69f3"),u=s.get,f=s.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(s?!h&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c(this)}))},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),c=n("d012"),s=n("1be4"),u=n("cc12"),f=n("f772"),l=">",h="<",d="prototype",b="script",p=f("IE_PROTO"),y=function(){},x=function(t){return h+b+l+t+h+"/"+b+l},g=function(t){t.write(x("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=u("iframe"),n="java"+b+":";return e.style.display="none",s.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(x("document.F=Object")),t.close(),t.F},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}m=r?g(r):v();var t=a.length;while(t--)delete m[d][a[t]];return m()};c[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(y[d]=i(t),n=new y,y[d]=null,n[p]=t):n=m(),void 0===e?n:o(n,e)}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=o.exec(d.stack)||a.exec(d.stack),s=c&&c[1]||!1,u=c&&c[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");s===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var h=0;h<l.length;h++){if("interactive"===l[h].readyState)return l[h];if(l[h].src===s)return l[h];if(s===f&&l[h].innerHTML&&l[h].innerHTML.trim()===i)return l[h]}return null}}return t}))},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8bbf":function(e,n){e.exports=t},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n==u||n!=s&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},s=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),c=n("83ab"),s=n("4930"),u=n("fdbf"),f=n("d039"),l=n("5135"),h=n("e8b5"),d=n("861d"),b=n("825a"),p=n("7b0b"),y=n("fc6a"),x=n("c04e"),g=n("5c6c"),v=n("7c73"),m=n("df75"),L=n("241c"),S=n("057f"),A=n("7418"),w=n("06cf"),O=n("9bf2"),_=n("d1e7"),j=n("9112"),E=n("6eeb"),P=n("5692"),T=n("f772"),k=n("d012"),B=n("90e3"),M=n("b622"),$=n("e538"),W=n("746f"),C=n("d44e"),I=n("69f3"),N=n("b727").forEach,H=T("hidden"),X="Symbol",D="prototype",V=M("toPrimitive"),F=I.set,G=I.getterFor(X),R=Object[D],Y=i.Symbol,q=o("JSON","stringify"),z=w.f,Z=O.f,U=S.f,J=_.f,K=P("symbols"),Q=P("op-symbols"),tt=P("string-to-symbol-registry"),et=P("symbol-to-string-registry"),nt=P("wks"),rt=i.QObject,it=!rt||!rt[D]||!rt[D].findChild,ot=c&&f((function(){return 7!=v(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=z(R,e);r&&delete R[e],Z(t,e,n),r&&t!==R&&Z(R,e,r)}:Z,at=function(t,e){var n=K[t]=v(Y[D]);return F(n,{type:X,tag:t,description:e}),c||(n.description=e),n},ct=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},st=function(t,e,n){t===R&&st(Q,e,n),b(t);var r=x(e,!0);return b(n),l(K,r)?(n.enumerable?(l(t,H)&&t[H][r]&&(t[H][r]=!1),n=v(n,{enumerable:g(0,!1)})):(l(t,H)||Z(t,H,g(1,{})),t[H][r]=!0),ot(t,r,n)):Z(t,r,n)},ut=function(t,e){b(t);var n=y(e),r=m(n).concat(bt(n));return N(r,(function(e){c&&!lt.call(n,e)||st(t,e,n[e])})),t},ft=function(t,e){return void 0===e?v(t):ut(v(t),e)},lt=function(t){var e=x(t,!0),n=J.call(this,e);return!(this===R&&l(K,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(K,e)||l(this,H)&&this[H][e])||n)},ht=function(t,e){var n=y(t),r=x(e,!0);if(n!==R||!l(K,r)||l(Q,r)){var i=z(n,r);return!i||!l(K,r)||l(n,H)&&n[H][r]||(i.enumerable=!0),i}},dt=function(t){var e=U(y(t)),n=[];return N(e,(function(t){l(K,t)||l(k,t)||n.push(t)})),n},bt=function(t){var e=t===R,n=U(e?Q:y(t)),r=[];return N(n,(function(t){!l(K,t)||e&&!l(R,t)||r.push(K[t])})),r};if(s||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=B(t),n=function(t){this===R&&n.call(Q,t),l(this,H)&&l(this[H],e)&&(this[H][e]=!1),ot(this,e,g(1,t))};return c&&it&&ot(R,e,{configurable:!0,set:n}),at(e,t)},E(Y[D],"toString",(function(){return G(this).tag})),E(Y,"withoutSetter",(function(t){return at(B(t),t)})),_.f=lt,O.f=st,w.f=ht,L.f=S.f=dt,A.f=bt,$.f=function(t){return at(M(t),t)},c&&(Z(Y[D],"description",{configurable:!0,get:function(){return G(this).description}}),a||E(R,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:Y}),N(m(nt),(function(t){W(t)})),r({target:X,stat:!0,forced:!s},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var n=Y(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!ct(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:ft,defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ht}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:dt,getOwnPropertySymbols:bt}),r({target:"Object",stat:!0,forced:f((function(){A.f(1)}))},{getOwnPropertySymbols:function(t){return A.f(p(t))}}),q){var pt=!s||f((function(){var t=Y();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}));r({target:"JSON",stat:!0,forced:pt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(d(e)||void 0!==t)&&!ct(t))return h(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ct(e))return e}),i[1]=e,q.apply(null,i)}})}Y[D][V]||j(Y[D],V,Y[D].valueOf),C(Y,X),k[H]=!0},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),c=n("5135"),s=n("c6b6"),u=n("7156"),f=n("c04e"),l=n("d039"),h=n("7c73"),d=n("241c").f,b=n("06cf").f,p=n("9bf2").f,y=n("58a8").trim,x="Number",g=i[x],v=g.prototype,m=s(h(v))==x,L=function(t){var e,n,r,i,o,a,c,s,u=f(t,!1);if("string"==typeof u&&u.length>2)if(u=y(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,c=0;c<a;c++)if(s=o.charCodeAt(c),s<48||s>i)return NaN;return parseInt(o,r)}return+u};if(o(x,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var S,A=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof A&&(m?l((function(){v.valueOf.call(n)})):s(n)!=x)?u(new g(L(e)),n,A):L(e)},w=r?d(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;w.length>O;O++)c(g,S=w[O])&&!c(A,S)&&p(A,S,b(g,S));A.prototype=v,v.constructor=A,a(i,x,A)}},ae40:function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("5135"),a=Object.defineProperty,c={},s=function(t){throw t};t.exports=function(t,e){if(o(c,t))return c[t];e||(e={});var n=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,f=o(e,0)?e[0]:s,l=o(e,1)?e[1]:void 0;return c[t]=!!n&&!i((function(){if(u&&!r)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:s}):t[1]=1,n.call(t,f,l)}))}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),c=n("4930"),s=n("fdbf"),u=i("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return o(u,t)||(c&&o(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),c=a((function(){o(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return o(i(t))}})},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),c=n("65f0"),s=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,h=5==t||l;return function(d,b,p,y){for(var x,g,v=o(d),m=i(v),L=r(b,p,3),S=a(m.length),A=0,w=y||c,O=e?w(d,S):n?w(d,0):void 0;S>A;A++)if((h||A in m)&&(x=m[A],g=L(x,A,v),t))if(e)O[A]=g;else if(g)switch(t){case 3:return!0;case 5:return x;case 6:return A;case 2:s.call(O,x)}else if(f)return!1;return l?-1:u||f?f:O}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,c=i(t),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);while(e.length>s)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),c=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),i=c.f,u=o(r),f={},l=0;while(u.length>l)n=i(r,e=u[l++]),void 0!==n&&s(f,e,n);return f}})},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,c=n("83ab"),s=i((function(){a(1)})),u=!c||s;r({target:"Object",stat:!0,forced:u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),c=a.f,s=o.f,u=0;u<n.length;u++){var f=n[u];r(t,f)||c(t,f,s(e,f))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:t.chartStyle},[n("svg",{attrs:{height:t.height,width:t.width}},[!1!==t.baseConfig.hasXAxisBackgroundLines?n("g",{domProps:{innerHTML:t._s(t.chartBuilder.renderXAxisLines())}}):t._e(),!1!==t.baseConfig.hasYAxisBackgroundLines?n("g",{domProps:{innerHTML:t._s(t.chartBuilder.renderYAxisLines())}}):t._e(),!1!==t.baseConfig.hasXAxisLabels?n("g",{domProps:{innerHTML:t._s(t.chartBuilder.renderXAxisLabels())}}):t._e(),!1!==t.baseConfig.hasYAxisLabels?n("g",{domProps:{innerHTML:t._s(t.chartBuilder.renderYAxisLabels())}}):t._e(),n("g",t._l(t.data,(function(e,r){return n("rect",{key:r,attrs:{x:r*t.chartBuilder.yLabelSlotWidth+t.slotGap/2+t.chartBuilder.leftAlignedXAxisLabelWidth,y:t.baseHeight-t.chartBuilder.calcDataPointHeight(e),rx:t.barRadius,width:t.barWidth,height:t.chartBuilder.calcDataPointHeight(e)<0?0:t.chartBuilder.calcDataPointHeight(e),fill:t.barColor}})})),0)])])},c=[];n("a9e3"),n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n("8bbf"),h=n.n(l),d=n("6c82"),b=n.n(d),p=h.a.extend({props:{data:{type:Array,required:!0},labels:{type:Array,required:!0},height:{type:Number,required:!0},width:{type:Number,required:!0},barRadius:{type:Number,default:0},barWidthPercentage:{type:Number,default:.7},barColor:{type:String,default:"black"},chartStyle:{type:Object,required:!0},baseConfig:{type:Object,required:!0}},data:function(){return{chartBuilder:{}}},created:function(){this.chartBuilder=new b.a(f({data:this.data,labels:this.labels,height:this.height,width:this.width},this.baseConfig))},computed:{baseHeight:function(){return this.height-this.chartBuilder.yAxisLabelHeight},barWidth:function(){return this.chartBuilder.yLabelSlotWidth*this.barWidthPercentage},slotGap:function(){return this.chartBuilder.yLabelSlotWidth-this.barWidth}}}),y=p;function x(t,e,n,r,i,o,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):i&&(s=c?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var f=u.render;u.render=function(t,e){return s.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:u}}var g=x(y,a,c,!1,null,null,null),v=g.exports;e["default"]=v},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
//# sourceMappingURL=vertical-bar-graph.umd.min.js.map