1jQuery(document).ready(function ($) { 2 var charts = []; 3 4 function findCharts() { 5 $(".random_prefix_val").each(function () { 6 var this_id = $(this).val(); 7 if ($("#chart_div_" + this_id).length == 0) { 8 return; 9 } 10 charts.push({ 11 json: $.parseJSON($("#graph_info_" + this_id).val()), 12 chart: document.getElementById("chart_div_" + this_id), 13 }); 14 }); 15 } 16 17 findCharts(); 18 19 if (charts.length > 0) { 20 google.charts.load("current", { packages: ["corechart"] }); 21 google.charts.setOnLoadCallback(drawChart); 22 } 23 24 function drawChart() { 25 $.each(charts, function (i, chart) { 26 var data = google.visualization.arrayToDataTable(chart.json); 27 var options = { 28 title: { 29 position: "none", 30 }, 31 backgroundColor: { 32 fill: "transparent", 33 }, 34 curveType: "function", 35 legend: { 36 position: "none", 37 }, 38 hAxis: { 39 baselineColor: "transparent", 40 gridlineColor: "transparent", 41 textPosition: "none", 42 }, 43 vAxis: { 44 baselineColor: "transparent", 45 gridlineColor: "transparent", 46 textPosition: "none", 47 }, 48 chartArea: { 49 left: -100, 50 right: -50, 51 top: -50, 52 width: "100%", 53 height: "100", 54 }, 55 }; 56 var chart = new google.visualization.LineChart(chart.chart); 57 chart.draw(data, options); 58 }); 59 } 60}); // global end
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.