aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common/nsb_report.js
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2019-01-25 14:44:20 +0000
committerMyron Sosyak <myronx.sosyak@intel.com>2019-04-03 10:38:37 +0100
commit34276b464ac7a2013d292680e545d25e515bb0cd (patch)
treef7078cb7c153b2de9fc27c054c60fb5cb124317c /yardstick/common/nsb_report.js
parent6a0ab66ed2890c7236db8ff49cde909f24f5d92a (diff)
Use baro and yardstick metrics in dynamic HTML report
_combine_metrics combines metrics from different sources. This is for use with the ``yardstick report generate-nsb`` command, which will combine yardstick and barometer metrics in the dynamic HTML report. JIRA: YARDSTICK-1593 Change-Id: I87002948ebb4cc88fb0932380bcb9920eb53db58 Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Diffstat (limited to 'yardstick/common/nsb_report.js')
-rw-r--r--yardstick/common/nsb_report.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/yardstick/common/nsb_report.js b/yardstick/common/nsb_report.js
index 4de1c8e78..18141900b 100644
--- a/yardstick/common/nsb_report.js
+++ b/yardstick/common/nsb_report.js
@@ -1,6 +1,6 @@
/*******************************************************************************
* Copyright (c) 2017 Rajesh Kudaka <4k.rajesh@gmail.com>
- * Copyright (c) 2018 Intel Corporation.
+ * Copyright (c) 2018-2019 Intel Corporation.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
@@ -72,11 +72,16 @@ function create_graph(cnvGraph, timestamps)
borderWidth: 2,
fill: false,
tension: 0,
+ showline: true,
+ spanGaps: true,
},
},
scales: {
xAxes: [{
type: 'category',
+ display: true,
+ labels: timestamps,
+ autoSkip: true,
}],
yAxes: [{
type: 'linear',
@@ -144,7 +149,7 @@ function update_graph(objGraph, datasets)
objGraph.update();
}
-function handle_tree(divTree, tblMetrics, objGraph, table_data, timestamps)
+function handle_tree(divTree, tblMetrics, objGraph, graph_data, table_data, timestamps)
{
divTree.on('check_node.jstree uncheck_node.jstree', function(e, data) {
var selected_keys = [];
@@ -155,7 +160,7 @@ function handle_tree(divTree, tblMetrics, objGraph, table_data, timestamps)
selected_keys.push(node.id);
selected_datasets.push({
label: node.id,
- data: table_data[node.id],
+ data: graph_data[node.id],
});
}
});