From 7ec06fe62a09776429bb41b4a392b9c03f94c672 Mon Sep 17 00:00:00 2001 From: Damith Date: Wed, 17 Feb 2016 14:02:30 +0530 Subject: [PATCH] Added tooltip fix --- charts/chart.util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/chart.util.js b/charts/chart.util.js index 449b815..afba3bc 100644 --- a/charts/chart.util.js +++ b/charts/chart.util.js @@ -168,6 +168,10 @@ function bindTooltip(div,markType,eventObj, config, metaData, keyList){ if (item != null && item.status != "exit" && item.mark.marktype == markType) { var canvas = $(".marks")[0]; + if($("#wrapper #tip").length) { + $tip.remove(); + } + $(div).wrap( "
" ); $("#wrapper").append("
");