Skip to content

Commit 3e52b94

Browse files
committed
look into cd0 for the case of box and violin
1 parent 3ba7ec7 commit 3e52b94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/fx/hover.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2014,12 +2014,13 @@ function getCoord(axLetter, winningPoint, fullLayout) {
20142014
val = ax.d2c(val);
20152015
}
20162016

2017-
if(d && d.t && d.t.posLetter === ax._id) {
2017+
var cd0 = cd[0];
2018+
if(cd0 && cd0.t && cd0.t.posLetter === ax._id) {
20182019
if(
20192020
fullLayout.boxmode === 'group' ||
20202021
fullLayout.violinmode === 'group'
20212022
) {
2022-
val += d.t.dPos;
2023+
val += cd0.t.dPos;
20232024
}
20242025
}
20252026

0 commit comments

Comments
 (0)