1"use strict";import{Controller}from"@hotwired/stimulus";import{loadChart}from"controllers/charts/chart_loader";export default class ItemsBarchart extends Controller{static values={sets:Array,labels:Array};async connect(){this.Chart=await loadChart(),this.element.isConnected&&this.itemsBarChart()}itemsBarChart(){const t=this.getBarData(),a=this.getBarOptions();new this.Chart(this.element,{type:"bar",data:t,options:a})}getBarData(){return{labels:this.labelsValue,datasets:[{data:this.setsValue,backgroundColor:"rgba(135, 206, 235, 0.2)",borderColor:"#87CEEB",borderWidth:1,label:"Items By Quantity"}]}}getBarOptions(){return{resizeDelay:2e3}}}
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.