diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-06-18 11:43:54 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-06-20 09:22:00 +0000 |
| commit | 99e56cfbc20592aa8bc1bd010d73eba241351b8d (patch) | |
| tree | f9713a8309a3a4c169b98302c046bf54dd1938af /dashboard/app/graph_histogram.html | |
| parent | da7439a87ada53c4aa2ce9da7c20f827d842ffe1 (diff) | |
dashboard/app/graph: generalize histogram
Diffstat (limited to 'dashboard/app/graph_histogram.html')
| -rw-r--r-- | dashboard/app/graph_histogram.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dashboard/app/graph_histogram.html b/dashboard/app/graph_histogram.html new file mode 100644 index 000000000..930d7b912 --- /dev/null +++ b/dashboard/app/graph_histogram.html @@ -0,0 +1,44 @@ +{{/* +Copyright 2024 syzkaller project authors. All rights reserved. +Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +Number of found bugs per month. +*/}} + +<!doctype html> +<html> +<head> + <title>{{.Title}}</title> + {{template "head" .Header}} + + <script type="text/javascript" src="https://www.google.com/jsapi"></script> + <script type="text/javascript"> + google.load("visualization", "1", {packages:["corechart"]}); + google.setOnLoadCallback(function() { + new google.visualization.ColumnChart ( + document.getElementById('graph_div')). + draw(google.visualization.arrayToDataTable([ + ["-", {{range $.Graph.Headers}}"{{.Name}}", {{end}}], + {{range $.Graph.Columns}}["{{.Hint}}", {{range .Vals}}{{.Val}},{{end}}],{{end}} + ]), { + width: "100%", + chartArea: {width: '90%', height: '85%'}, + legend: {position: 'in'}, + focusTarget: "category", + isStacked: true, + vAxis: {minValue: 1, textPosition: 'out', gridlines: {multiple: 1}, minorGridlines: {multiple: 1}}, + hAxis: {minValue: 1, textPosition: 'out', maxAlternation: 1, gridlines: {multiple: 1}, minorGridlines: {multiple: 1}}, + series: { + {{range $idx, $hdr := $.Graph.Headers}} + {{$idx}}: {color: "{{$hdr.Color}}"}, + {{end}} + }, + }) + }); + </script> +</head> +<body> + {{template "header" .Header}} + <div id="graph_div"></div> +</body> +</html> |
