Skip to content

Commit d584520

Browse files
committed
rename function to customVal
1 parent c89784d commit d584520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/fx/hover.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,8 @@ function _hover(gd, evt, subplot, noHoverEvent) {
653653
var isGrouped = (fullLayout.boxmode === 'group' || fullLayout.violinmode === 'group');
654654

655655
findHoverPoints(
656-
getVal('x', winningPoint, isGrouped),
657-
getVal('y', winningPoint, isGrouped)
656+
customVal('x', winningPoint, isGrouped),
657+
customVal('y', winningPoint, isGrouped)
658658
);
659659

660660
// Remove duplicated hoverData points
@@ -1898,7 +1898,7 @@ function orderPeriod(hoverData, hovermode) {
18981898
hoverData = first.concat(last);
18991899
}
19001900

1901-
function getVal(axLetter, winningPoint, isGrouped) {
1901+
function customVal(axLetter, winningPoint, isGrouped) {
19021902
var cd0 = winningPoint.cd[winningPoint.index];
19031903
var ax = winningPoint[axLetter + 'a'];
19041904
var val = winningPoint[axLetter + 'Val'];

0 commit comments

Comments
 (0)