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