PageSourceSearch

https://0x.kz/build/assets/LineChart-Cm2gU_uS.js

js 0x.kz collected 2026-10-09 04:37:19 UTC 1,626 bytes, 1 lines download raw bytes

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