Initial support for history over device scenes

This patch will generate html file which contains per-scene graph ofg all device
statistics over all period of time. There are still some possible tweaks to look
and feel of the graphs, but it's good enough for now.
This commit is contained in:
2017-08-27 21:25:46 +02:00
parent 0cd6c37ec2
commit 34c6f867b0
3 changed files with 191 additions and 10 deletions

View File

@@ -0,0 +1,32 @@
<!doctype html>
<html>
<head>
<title>Benchmark Results</title>
<script src="source/chart.bundle.js"></script>
<script src="source/utils.js"></script>
<script src="source/jquery.min.js"></script>
<script src="source/jquery.jqGrid.min.js"></script>
<script src="source/bootstrap.min.js"></script>
<script src="dataset/history.js"></script>
<link rel="stylesheet" type="text/css" href="style/main.css">
<link rel="stylesheet" type="text/css" href="style/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="style/ui.jqgrid-bootstrap.css" />
</head>
<body>
<div id="container">
</div>
<br><br>
<table id="spreadsheet"></table>
<script type="text/javascript">
window.onload = function() {
var container = document.getElementById("container");
for (scene_name of data.scenes) {
var canvas = document.createElement("canvas");
container.appendChild(canvas);
var chart_ctx = canvas.getContext("2d");
buildHistoryChart(chart_ctx, data, scene_name);
}
};
</script>
</body>
</html>