1import{b as i}from"./index-CsDG7sQh.js";import{C as l,p as c,a as p,b as d,B as h,c as u,d as m}from"./chart-4zv7KpEq.js";import{_ as f,B as g,o as C,g as _}from"./app-DVhk9hEg.js";/* empty css */l.register(c,p,d,h,u,m);const b={name:"BarDegrees",components:{Bar:i},props:{data:{type:Object,required:!0}},data(){return{chartData:{labels:[],datasets:[]},chartOptions:{responsive:!0,indexAxis:"y",plugins:{legend:{display:!0,position:"top"},title:{display:!0,text:"Bar Chart (Horizontal)"}},scales:{x:{beginAtZero:!0}}}}},watch:{data:{deep:!0,handler(){this.prepareChartData(),this.updateChart()}}},mounted(){this.prepareChartData()},methods:{prepareChartData(){if(!this.data.data||this.data.data.length===0){this.chartData={labels:[],datasets:[]};return}const t=[...new Set(this.data.data.map(a=>Object.values(a)[0]||"Ðез меÑки"))],r=t.map(a=>this.data.data.filter(e=>(Object.values(e)[0]||"Ðез меÑки")===a).reduce((e,s)=>e+(Object.values(s)[1]||0),0));this.chartData={labels:t,datasets:[{label:"ÐаннÑе",data:r,backgroundColor:t.map(()=>this.getRandomColor())}]}},updateChart(){var t;(t=this.$refs.chartRef)!=null&&t.chartInstance&&this.$refs.chartRef.chartInstance.update()},getRandomColor(){const t="0123456789ABCDEF";let r="#";for(let a=0;a<6;a++)r+=t[Math.floor(Math.random()*16)];return r}}};function B(t,r,a,o,e,s){const n=g("Bar");return C(),_(n,{id:"my-chart-id",options:e.chartOptions,data:e.chartData,ref:"chartRef"},null,8,["options","data"])}const v=f(b,[["render",B]]);export{v 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.