github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/dashboard/app/graph_bugs.html (about) 1 {{/* 2 Copyright 2020 syzkaller project authors. All rights reserved. 3 Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 4 5 Bugs statistics graph. 6 */}} 7 8 <!doctype html> 9 <html> 10 <head> 11 <title>{{.Header.Namespace}} health</title> 12 {{template "head" .Header}} 13 14 <script type="text/javascript" src="https://www.google.com/jsapi"></script> 15 <script type="text/javascript"> 16 google.load("visualization", "1", {packages:["corechart"]}); 17 google.setOnLoadCallback(drawCharts); 18 function drawCharts() { 19 new google.visualization.LineChart(document.getElementById('graph_div')). 20 draw(google.visualization.arrayToDataTable([ 21 ["-", {{range $.Graph.Headers}}"{{.}}", {{end}}], 22 {{range $.Graph.Columns}}["{{.Hint}}", {{range .Vals}}{{.Val}},{{end}}],{{end}} 23 ]), { 24 width: "100%", 25 chartArea: {width: '95%', height: '95%'}, 26 legend: {position: 'in'}, 27 axisTitlesPosition: 'out', 28 hAxis: {textPosition: 'in', maxAlternation: 1}, 29 vAxis: {textPosition: 'in'}, 30 focusTarget: "category", 31 series: { 32 0: {targetAxisIndex: 0, color: "red", lineWidth: 3}, 33 1: {targetAxisIndex: 1, color: "black"}, 34 2: {targetAxisIndex: 1, color: "green"}, 35 }, 36 vAxes: { 37 0: {title: '# open bugs', gridlines: {multiple: 1}, minorGridlines: {multiple: 1}}, 38 1: {title: '# total reported / fixed', gridlines: {count: 0}} 39 } 40 }) 41 } 42 </script> 43 </head> 44 <body> 45 {{template "header" .Header}} 46 <a href="https://github.com/google/syzkaller/blob/master/docs/syzbot.md#amend" title="help" target="_blank" class="graph_help">🛈</a> 47 <div id="graph_div"></div> 48 </body> 49 </html>