1import{l as s}from"./loadChart-nuoei8-_.js";import{n as e}from"./floating-vue-oSNsZTHH.js";import"./vendor-ChPhPn7X.js";import"./realtime-wyMA-lNS.js";import"./lodash-Bj48HpQF.js";const n={name:"BarCard",props:{title:String,labels:Array,values:Array},async mounted(){const r=await s(),t=this.$refs.canvas.getContext("2d");this._chart=new r(t,{type:"bar",data:{labels:this.labels,datasets:[{data:this.values}]},options:{plugins:{legend:{display:!1}},scales:{x:{grid:{display:!1}},y:{beginAtZero:!0,grid:{drawBorder:!1}}}}})},beforeDestroy(){this._chart&&this._chart.destroy()}};var i=function(){var t=this,a=t._self._c;return a("div",{staticClass:"bg-white border border-gray-200 rounded-lg p-4"},[a("div",{staticClass:"mb-3 font-medium"},[t._v(t._s(t.title))]),a("canvas",{ref:"canvas",attrs:{height:"100"}})])},o=[],l=e(n,i,o,!1,null,null);const f=l.exports;export{f as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.