Skip to content

Commit 663da19

Browse files
author
Alan Lins
committed
Tooltip gets stuck
Despite krispo#172 had been solved in case of changing data, bu it is stil happening when change options. Set the option useInteractiveGuideline true. After populate data, change the current options like tickFormat. This only happens with useInteractiveGuideline=true.
1 parent 19e6d97 commit 663da19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/angular-nvd3.js

+4
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@
283283
d3.select('#' + scope.chart.tooltip.id()).remove();
284284
}
285285

286+
if (scope.chart && scope.chart.interactiveLayer && scope.chart.interactiveLayer.tooltip && scope.chart.interactiveLayer.tooltip.id) {
287+
d3.select('#' + scope.chart.interactiveLayer.tooltip.id()).remove();
288+
}
289+
286290
// To be compatible with old nvd3 (v1.7.1)
287291
if (nv.graphs && scope.chart) {
288292
for (var i = nv.graphs.length - 1; i >= 0; i--) {

0 commit comments

Comments
 (0)