Restore tooltip, now it works onsingle result only
This commit is contained in:
@@ -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 = "";
|
||||
|
Reference in New Issue
Block a user