From e7b8e8278fa230876ff45915de95b6f184a25917 Mon Sep 17 00:00:00 2001 From: Henry Jordan Date: Fri, 8 Oct 2021 16:24:14 +0000 Subject: [PATCH] PMCORE-3404 --- .../assets/js/home/TaskMetrics/VueChartLvOne.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/home/TaskMetrics/VueChartLvOne.vue b/resources/assets/js/home/TaskMetrics/VueChartLvOne.vue index f7bf10e5d..a386eeae6 100644 --- a/resources/assets/js/home/TaskMetrics/VueChartLvOne.vue +++ b/resources/assets/js/home/TaskMetrics/VueChartLvOne.vue @@ -111,6 +111,7 @@ export default { let that = this; return { popoverTarget: "", + dataPointIndex: null, showPopover: false, category: null, dataProcesses: null, //Data API processes @@ -141,8 +142,14 @@ export default { show: false, }, events: { - click: function (event, chartContext, config) { - that.$refs.popover.$emit("close"); + mouseMove: function (event, chartContext, config) { + if ( + config.dataPointIndex != that.dataPointIndex && + config.dataPointIndex != -1 + ) { + that.dataPointIndex = config.dataPointIndex; + that.$refs.popover.$emit("close"); + } if (config.dataPointIndex != -1) { that.currentSelection = that.totalCases[config.dataPointIndex]; that.onShowDrillDownOptions( @@ -151,6 +158,9 @@ export default { ); } }, + mouseLeave: function (event, chartContext, config) { + + }, }, }, plotOptions: { @@ -162,7 +172,7 @@ export default { }, colors: ["#33b2df", "#546E7A", "#d4526e", "#13d8aa"], dataLabels: { - enabled: false, + enabled: true, }, xaxis: { categories: [],