diff --git a/src/components/Header.vue b/src/components/Header.vue index f520194..aa14a46 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -10,7 +10,7 @@ - diff --git a/src/views/Compare/Dashboard/index.vue b/src/views/Compare/Dashboard/index.vue index fcdc654..ac47c42 100644 --- a/src/views/Compare/Dashboard/index.vue +++ b/src/views/Compare/Dashboard/index.vue @@ -835,6 +835,9 @@ export default { title: function(context) { return `${content.x}: ${getMoment(context[0].parsed.x)}`; }, + label:function(context) { + return `${content.y}: ${getSimpleTimeLabel(context.parsed.y, 2)}`; + }, }, }, title: { @@ -908,15 +911,6 @@ export default { } }, }, - plugins: { - tooltip: { - callbacks:{ - label:function(context) { - return `${content.y}: ${getSimpleTimeLabel(context.parsed.y, 2)}`; - }, - }, - }, - }, }; return [primeVueSetData, primeVueSetOption]; diff --git a/src/views/Discover/Performance/index.vue b/src/views/Discover/Performance/index.vue index 0c98898..858f4e2 100644 --- a/src/views/Discover/Performance/index.vue +++ b/src/views/Discover/Performance/index.vue @@ -814,6 +814,11 @@ export default { title: function(context) { return `${content.x}: ${getMoment(context[0].parsed.x)}`; } + //TODO: Not sure which one to apply. callbacks:{ + // label:function(context) { + // return `${content.y}: ${getSimpleTimeLabel(context.parsed.y, 2)}`; + // }, + // }, }, }, title: { @@ -888,15 +893,6 @@ export default { } }, }, - plugins: { - tooltip: { - callbacks:{ - label:function(context) { - return `${content.y}: ${getSimpleTimeLabel(context.parsed.y, 2)}`; - }, - }, - }, - }, }; return [primeVueSetData, primeVueSetOption]