1import { Controller } from "@hotwired/stimulus" 2import { initD3 } from "helpers/graphs" 3 4export default class extends Controller { 5 static values = { 6 data: Array, 7 options: Object 8 } 9 10 connect() { 11 this.render() 12 } 13 14 async render() { 15 await initD3() 16 const options = this.optionsValue.options 17 if (options.currency) { 18 options.currency = pam.util.dom.unencodeHtmlString(options.currency) 19 } 20 pam.graphing.scatterplot( 21 this.dataValue, 22 this.element.id, 23 this.optionsValue.grouping, 24 this.optionsValue.xAxis, 25 this.optionsValue.yAxis, 26 options 27 ) 28 } 29} 30
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.