Skip to content

Commit f4b14e6

Browse files
committed
fine tune annotation arrow selector
- instead of looking through the whole graph div
1 parent 1a8f1ed commit f4b14e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/annotations/draw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ function drawOne(gd, index) {
414414
* while the head stays put, dx and dy are the pixel offsets
415415
*/
416416
var drawArrow = function(dx, dy) {
417-
d3.select(gd)
418-
.selectAll('.annotation-arrow-g[data-index="' + index + '"]')
417+
annGroup
418+
.selectAll('.annotation-arrow-g')
419419
.remove();
420420

421421
var headX = annPosPx.x.head,

0 commit comments

Comments
 (0)