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("
");