Restore tooltip, now it works onsingle result only

This commit is contained in:
2017-08-18 17:49:01 +02:00
parent 3dc5acffc2
commit fe1cb2dbf7

View File

@@ -55,6 +55,7 @@ function buildChart(ctx, bare_data) {
for (value of dataset.data) {
max_value = Math.max(max_value, value);
}
index++;
}
window.myBar = new Chart(
ctx,
@@ -73,7 +74,7 @@ function buildChart(ctx, bare_data) {
labelString: 'Render time (sec)'},
ticks: {min: 0,
max: Math.ceil(max_value * 1.25)}}]},
tooltips: {mode: 'index',
tooltips: {// mode: 'index',
callbacks: {
footer: function(tooltipItems, data) {
var human_time = "";