Skip to content

Commit 6eb862e

Browse files
committed
use pointNumber from eventData
1 parent 6074b33 commit 6eb862e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fx/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ function createHoverText(hoverData, opts, gd) {
11051105

11061106
var dColor = d.color;
11071107
if(Array.isArray(dColor)) {
1108-
dColor = dColor[d.index];
1108+
dColor = dColor[d.eventData[0].pointNumber];
11091109
}
11101110

11111111
// combine possible non-opaque trace color with bgColor

0 commit comments

Comments
 (0)